Viewing 15 posts - 57,271 through 57,285 (of 59,070 total)
One test is worth a thousand words... run the following... do note that the AUTHOR table does NOT exist in PUBS...
USE PUBS
GO
IF OBJECT_ID('dbo.Author') IS NOT NULL --No...
November 8, 2006 at 8:53 pm
Ummm.... why don't you just store it in a variable and execute it using EXEC or sp_ExecuteSQL ???
November 7, 2006 at 7:30 am
You're missing the implied carriage returns both captured in single quotes and by the return of each line... to emphasize...
SELECT 'Hey
'+'Go'
FROM MASTER..SYSDATABASES WITH(NOLOCK)
WHERE DBID>5
November 7, 2006 at 6:02 am
It's important that it print right on the screen? Ok.. I have to ask... what are you actually doing with this? Hopefully you're not doing a cut and paste from...
November 6, 2006 at 8:49 pm
Ok... One picture is worth a thousand words...
--===== Conditionally drop the temp table
IF OBJECT_ID('TEMPDB..#Test') IS NOT NULL
DROP TABLE #Test
DECLARE @Rows INT
CREATE TABLE...
November 5, 2006 at 8:53 am
Use a word processor like MS-Word to do a search and replace... the symbol for a hard return in MS-Word is "^p" without the quotes.
November 5, 2006 at 8:40 am
Sure... I'll take your survey... make it so that cookies aren't required...
November 3, 2006 at 7:24 pm
THAT, Ladies and Gentlemen, is why doing it this way is so important...
DECLARE @ANull VARCHAR(8000)
SET @ANull = NULL --was already null, just doing it here for effect...
November 3, 2006 at 5:04 pm
For query 1... it seems a view of the tables would be appropriate (do be warned that there is a limit to the number of unions you can do... I...
November 3, 2006 at 7:46 am
Wouldn't that be what the invoice number is for?
November 3, 2006 at 6:56 am
Perhaps if you told us the rest of the story as to why you are trying to do a DIR, we might even be able to come up with a...
November 2, 2006 at 8:25 pm
Yep... you're right... forgot about all that punctuation stuff. Thanks, Serqiy.
November 2, 2006 at 6:09 am
Viewing 15 posts - 57,271 through 57,285 (of 59,070 total)