Viewing 15 posts - 61 through 75 (of 134 total)
Hi,
You can only use a fixed string value for the OPenRowset. But you can use the sp_addlinkedserver like this :
Declare @ServerName VarChar(100)
Declare @Proc VarChar(200)
Set @ServerName = 'quix'
Set @Proc = @ServerName...
January 12, 2005 at 2:08 am
SELECT [Customer Change No], [PIA Material No],
isnull([Adj Due Date], [Due date]) AS Expr1
FROM dbo.[tblPPAP Notification Detail]
Bert
January 12, 2005 at 1:44 am
You can also do this using like :
DECLARE @Parm varchar(100)
SET @Parm = 'VINET, TOMSP , VICTE' -- (comma separated list as user would input)
-- Below I've tried to massage the...
January 12, 2005 at 1:38 am
Hi,
You could try using a temporary table to build the text. You could try something like this :
declare @message varchar(8000)
declare @txtptr varbinary(16)
declare @i int set @i = 1
-- create the...
January 12, 2005 at 1:28 am
Hi,
Good function. And surely, a very clear documentation. Just 1 (little) thing. As my server is case sensitive, I had to change USE MASTER into USE master, and XType into...
January 10, 2005 at 1:27 am
I do not know exactly what is wrong, but I would suggest to verify :
1. for the inner joins, try to use an other alias, as alias c is also...
November 12, 2004 at 2:13 am
I tried it in QA, and had an error for the first query :
Server: Msg 170, Level 15, State 1, Line 4
Line 4: Incorrect syntax near 'NULL'.
SO answer 1 is...
October 21, 2004 at 11:43 pm
Just set the result to "Text, tab delimited". You can get tab-delimited by Tools->Options and set it in the results tab. After this, (re-)reun your query, open excel, copy the...
October 21, 2004 at 12:30 am
I would create a stored procedure that generates the triggers for me. ( as you have a lot of tables ) I do not know the kind of data that...
October 20, 2004 at 12:55 am
#temp_table will not work, as the table will be disappeared after the exec. a ##temp_table will work, but you have to use transactions, as the ##temp_table can be used by...
October 15, 2004 at 6:06 am
If performance is not an issue, you can do this like :
select field2 from table1 where ','+@parameter+',' like '%,' + field1 + ',%'
If field1 is not a character type,...
October 15, 2004 at 12:27 am
Michael had a good point. But you can do it without a while loop. Using a temp table is fine, but can give you some performance problems when dealing with...
October 8, 2004 at 1:26 am
I found 2 solutions. The first select will not give you the row with the null value, but should perform better, the second gives you the result you want :
use...
October 8, 2004 at 1:02 am
The default is not read-only. In Bol, you will find for the read-only option :
"READ ONLY
Prevents updates made through this cursor. The cursor cannot be referenced in a WHERE...
September 23, 2004 at 12:53 am
Can you tell us what type of cursor you use ? global/local, read-only, .... I suppose a cursor that is NOT read-only has more performance problems with an order-by then...
September 23, 2004 at 12:23 am
Viewing 15 posts - 61 through 75 (of 134 total)