Viewing 15 posts - 466 through 480 (of 921 total)
Use the SELECT...INTO...FROM... syntax, e.g.:
SELECT <select list from your query here>
INTO ##TempTable
FROM <rest of your query here>
--Jonathan
November 18, 2003 at 5:27 am
quote:
how about Multiple columnssuch as
declare @OrderBy varchar(200)
set @OrderBy = 'FIRST_NAME,LAST_NAME'
END SELECT * FROM RESOURCE
order by case @OrderBy
WHEN 'FIRST_NAME,LAST_NAME' THEN FIRST_NAME,LAST_NAME
...
November 18, 2003 at 5:22 am
SELECT CAST(LEFT([Date]+19000000,8) AS datetime)+STUFF(STUFF(REPLACE(STR([Time],6),' ',0),5,0,':'),3,0,':')
FROM StrangeDates
--Jonathan
November 17, 2003 at 3:20 pm
There's a good list here:
http://www.sqlsecurity.com/DesktopDefault.aspx?tabindex=3&tabid=4
--Jonathan
November 17, 2003 at 12:38 pm
Use a CASE expression, e.g.:
...
ORDER BY CASE @OrderBy
WHEN 'Col1' THEN Col1
WHEN 'Col2' THEN Col2
WHEN 'Col3' THEN Col3
ELSE 'Col4' END
If the columns are...
November 17, 2003 at 12:30 pm
See if you can get it working using bcp interactively and then use the generated format file with BULK INSERT.
--Jonathan
November 17, 2003 at 11:27 am
Not sure I understand your question, but did you try SET QUOTED_IDENTIFIER OFF at the beginning of the script?
--Jonathan
November 17, 2003 at 10:31 am
quote:
but is there a way of changing the underlying default so I don't have to run a convert?
November 17, 2003 at 9:47 am
Cross-posted at:
http://www.sqlservercentral.com/forum/topic.asp?TOPIC_ID=18224&FORUM_ID=23&CAT_ID=2
--Jonathan
November 17, 2003 at 8:37 am
quote:
Thought about Vaughns book but ive heard it doesnt have many examples......but this is the only one people keep recommending. Have you...
November 17, 2003 at 8:22 am
Bill Vaughn's Hitchhiker's Guide to Visual Basic and SQL Server is considered the "bible." If you're using VB.NET, though, try Dobson's Programming Microsoft SQL Server 2000 with Microsoft Visual...
November 17, 2003 at 8:06 am
quote:
Gary,Just curious, what is the purpose of your query?
I think, unless you use an 'order by clause', the rows selected will...
November 17, 2003 at 7:54 am
Use the CONVERT function, e.g.:
SELECT CONVERT(char(10),GETDATE(),105)
--Jonathan
November 17, 2003 at 7:35 am
quote:
So I am able to see in EM 3071 MB of RAM ?Although I can only use 2048??
Frank
November 17, 2003 at 7:12 am
You can configure SQL Server Standard to use more than 2GB memory, but then it will not use physical memory above 2GB but instead virtual (paged) memory, and you...
November 17, 2003 at 7:01 am
Viewing 15 posts - 466 through 480 (of 921 total)