Quantcast
Channel: ฟอรัม Getting started with SQL Server
Browsing all 8428 articles
Browse latest View live

Year function reteives different values

  SELECT year(convert(date,'24-10-49',5)) --dd-mm-yy--2049SELECT year(convert(varchar(10),'24-10-49',5)) --dd-mm-yy--2049SELECT year(convert(date,'24-10-50',5)) --dd-mm-yy--1950SELECT...

View Article


Protect my sql server database

Hello !I have created an application that use a sql server database.But the problem is that a user can open sql server management studio and can do anything that I don't like , for example :1) Can...

View Article


Creating a database installer using this article from microsoft

Hi, I have been reading the below article and I have got it to work.   http://msdn.microsoft.com/en-us/library/49b92ztk.aspxThe problem is when I use my database script file it throws an error 1001...

View Article

Overview of existing SQL Server Logins, for edit/delete options

Hi all,in my Sql Server Management Studio, I can create a new login by right-clicking the "security" item on the object explorer in the left, and selecting new->Login.Where can I, however, get an...

View Article

Backup not happening

DECLARE @name VARCHAR(50) DECLARE @path VARCHAR(256) DECLARE @fileName VARCHAR(256) DECLARE @fileDate VARCHAR(20) SET @path = 'Y:\Dbbackup\' SELECT @fileDate = CONVERT(VARCHAR(20),GETDATE(),112)...

View Article


clustering

hai,i have two windows server 2008 severs on vm workstation,may know how to build a clustering between two servers with sql server 2012 on them.please suggest me .

View Article

Is there a way to insert a string even if the value has a single quote in it?

Hi,I have a varchar string like Name: D'souzaI am getting an error when i am inserting  like this.insert into table (D'souza)Is there any way to allow inserting the exact value even if it has single...

View Article

Trying to log in using new login and sql server authentication: "Login failed...

Hi all,I have created a new login for my server, under the security node on the server level. I did this by right-clicking the Security Node and choosing new->login. i named the login OpenFireUser,...

View Article


Grant permission on JOB in SQLagent inorder to modify steps in it

after i create a job in SQL Agent and schedule it, my DBA changes the owner . but there is always something and have to modify the job.. when he gives me back permission to modify . i cannot really...

View Article


SQL Server 2012 Cumulative update package 2 (CU2) for SQL Server 2012 Service...

Hey guys... Im a little bit confused... i wanted to download the newest hotfixes for SQL server 2012...But the download for : 2983175 Cumulative update package 2 (CU2) for SQL Server 2012 Service...

View Article

Long query time

Hey,I'm just learning how to use SQL, but now ive got this problem.When I'm running the code beneath it take more than a hour to complete while friends of me run this in less then 5 min.Hope any of you...

View Article

Moving data to new database

We have been using SQL Server 2008 Express and recently installed SQL Server 2012 (Not Express version). In 2008 I was able to make back ups to a flash drive and restore the data base from that device....

View Article

Image may be NSFW.
Clik here to view.

Configure SQL Server to work together with OpenFire (XMPP/Jabber Server)

Hi all,I am trying to set up Openfire (a jabber/xmpp server) to talk to a SQL Server on the same machine.I am following these instructions for this:...

View Article


Image may be NSFW.
Clik here to view.

August TechNet Guru Winners!

The results for August's TechNet Guru competition have been posted!http://blogs.technet.com/b/wikininjas/archive/2014/09/16/the-microsoft-technet-guru-awards-august-2014.aspx Congratulations to all our...

View Article

Getting data from WMI Queries

Hey guys!I'm trying to get information about disk space using the following example query:"SELECT * FROM Win32_LogicalDisk WHERE FreeSpace < 20000"Simply to get the following error: Invalid object...

View Article


After creating Table, how to add new Column field name from Checkitems in VB...

I want to create table in SQL2012 at run-time. My design form look like - ================================================|    chklstbox     |                         |           dbo.myTable...

View Article

Get Reports and Tables

I'm trying to write a query that will display all the tables and views (FROM information_schema.tables) associated with their respective reports (FROM dbo.Catalog) from a database.  Is it even...

View Article


stopping scheduled jobs and running couple couple

I have an upcoming project where the scheduled jobs has to be stopped by 2:00pm and only couple jobs has to be run at that time. In those couple jobs, one of them got multiple steps and only the 1st...

View Article

Image may be NSFW.
Clik here to view.

How to combine data from two rows into one row

I have the following sets of data. I want to find all the duplicate sets of field values. in the data below there is only one duplicate set: brenda, analyst, green.DocID and Doc Seq combine to form the...

View Article

Database is inrecovery mode since hours

Data base is in IN RECOVERY mode since few hours nowwhen i check the log this is what i findLogin failed for user 'abc'. Reason: Failed to open the explicitly specified database. [CLIENT: 10.99.2.xx]...

View Article
Browsing all 8428 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>