Viewing 15 posts - 106 through 120 (of 1,109 total)
latingntlman (8/5/2008)
thx,Now I need to convert getdate() as 2008-08-06 00:00:00
What's the best syntax I can use?
JOhn
If you want a datetime then:
select DATEADD(Day, 0, DATEDIFF(Day, 0, getdate()))
if you want a varchar...
August 6, 2008 at 1:49 am
Interesting, the above statement should work, and it does work when I try it on a 2000, 2005, 2005 compatibility modes 65,70,80.
What version and edition of SQL Server do you...
August 5, 2008 at 8:55 am
One solution is to add the stored procedures to the master database, and add sp_ prefix to their names
(bad practise)
Another solution is to use a tool to sync the...
August 5, 2008 at 8:44 am
latingntlman (8/5/2008)
August 5, 2008 at 8:38 am
Change the last line to:
AND i.ADDRESS_SEQ < i2.ADDRESS_SEQ
Explanation: If you have two addresses A and B, then as teh two are not the same you will get back both A,B...
August 5, 2008 at 3:35 am
shyam (8/4/2008)
I would like to know the major differences that a DBA should know bt the versions 2000 & 2005, 2005 & 2008. I tried looking up for this in...
August 5, 2008 at 3:25 am
This has been posted to http://www.sqlservercentral.com/Forums/Topic546548-146-1.aspx
- Andras
August 5, 2008 at 3:18 am
also run sp_who2 to see who/what application is using your db.
- Andras
August 5, 2008 at 3:10 am
Because you are using SQL Server 2005, do not use sysobjects. Use the SQL Server 2005 system views, like Markus did in his response. For sysobjects the new system view...
August 5, 2008 at 3:08 am
khushbu.kumar (8/5/2008)
I'm getting below error when my application tries to run a func.
The application is coded in .NET.
the web.config file has no connection timeout string
Is it related to sql...
August 5, 2008 at 2:49 am
maruf24 (8/5/2008)
select @errorcode = reason_code from blr1 where p_id = 236
select p_id,ID,User_ID,cd,cid,k_id,NAM,S_DT,DT,
time,amt,stat,msg,ino,info from...
August 5, 2008 at 2:39 am
Ariel Dimapilis (8/5/2008)
anyone can do a script to check for last updates in database objects e.g. store procedures and views. they will see the last modifiedthanks
this information is present...
August 5, 2008 at 2:18 am
pkuchaliya (8/5/2008)
hi,Please tell how to transfer sql query output to text file. only using sql query.
Could you describe what you would like to do in more details? SQL is...
August 5, 2008 at 2:12 am
shubhangi.hirudkar (8/5/2008)
HI,How do I script object permissions of a particular user or Group in a database for SQL 2000.
You can get the permissions from the sysprotects system table. You can...
August 5, 2008 at 2:01 am
mathewspsimon (8/4/2008)
I get the following error
Msg 325, Level 15, State 1, Line 30
Incorrect syntax near 'PIVOT'. You may need to set the compatibility level of the current database...
August 5, 2008 at 1:53 am
Viewing 15 posts - 106 through 120 (of 1,109 total)