Viewing 15 posts - 1,351 through 1,365 (of 5,356 total)
Have you searched the script section here already. This is a FAQ, so very likely you find a generic solution there. ![]()
December 29, 2004 at 8:16 am
Multiple posts to different fora doesn't make it any better
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=10&messageid=152693
![]()
December 29, 2004 at 8:10 am
Anyone who is that stupid to believe there is money for nothing available must bear the blame himself. ![]()
December 29, 2004 at 8:08 am
Something like this?
use pubs
go
select au_lname,
case when charindex('l',au_lname)>0 then au_lname else 'FRANK' end
from
authors
?
December 29, 2004 at 8:02 am
Just a note on the use of a column with BINARY_CHECKSUM instead of * as has been mentioned above. Consider this:
CREATE TABLE #t
(
i1 INT IDENTITY
, c1 VARCHAR(50)
)
INSERT INTO #t VALUES...
December 29, 2004 at 7:53 am
Really the quickest way?
Detach the db, rename or delete the log, attach the DB ![]()
or use
BACKUP LOG WITH TRUNCATE_ONLY
DBCC SHRINKFILE
Btw, changing the recovery mode has...
December 29, 2004 at 7:39 am
Have a look at BOL for "CREATE VIEW" -> "Creating an indexed view". The chapter about requirements for an indexed view should help you.
December 29, 2004 at 7:02 am
Can you post your statement?
December 29, 2004 at 6:05 am
Forgot to mention, to determine the name of the DB the DB_NAME() function might come in handy.
December 29, 2004 at 5:20 am
See, if this helps:
DECLARE @stmt NCHAR(1000)
SET @stmt = 'USE Frank_3 '
+ CHAR(13) +
'DECLARE @stmt NCHAR(1000)'
+ CHAR(13) +
'SET @stmt = ''CREATE TABLE First (col_a int)'''
+ CHAR...
December 29, 2004 at 5:17 am
I think your syntax isn't supported by SQL Server (At least, have I never heard of that). The use of a cursor might be questionable, maybe you can workaround the cursor...
December 29, 2004 at 4:56 am
I'm not sure if I understand you. Can you give an example in pseudocode of what you mean?
December 29, 2004 at 3:56 am
What is your exact statement and the error message you get?
And why do you want to denormalize your table?
December 29, 2004 at 2:37 am
You can't use dynamic SQL inside a function. So this part of your suggestion won't work. ![]()
December 29, 2004 at 2:00 am
Viewing 15 posts - 1,351 through 1,365 (of 5,356 total)