Viewing 15 posts - 9,991 through 10,005 (of 14,953 total)
On the access error, you need to look at the linked server set up. It needs to be logging in with rights that can select from those tables.
April 13, 2009 at 6:54 am
I'm having trouble visualizing what you're describing. Can you provide a sample table (create table script) and a sample insert command, to create the data you're describing? Just...
April 13, 2009 at 6:52 am
Is it running in a different database than the others? I don't mean msdb, I mean the database it does its work in.
April 13, 2009 at 6:50 am
Eswin (4/12/2009)
Built-in functions that can return different data on each call are not allowed in user-defined functions. The built-in functions not allowed in user-defined functions are:@@CONNECTIONS
@@PACK_SENT
GETDATE
@@CPU_BUSY
@@PACKET_ERRORS
GetUTCDate
@@IDLE
@@TIMETICKS
NEWID
@@IO_BUSY
@@TOTAL_ERRORS
RAND
@@MAX_CONNECTIONS
@@TOTAL_READ
TEXTPTR
@@PACK_RECEIVED
@@TOTAL_WRITE
Some of these can be...
April 13, 2009 at 6:46 am
Do a select that joins the two tables on the class_id column, and with a Where clause that eliminated the null rows that you don't want. Does that get...
April 9, 2009 at 3:01 pm
The left join usually is the best way to handle that. It can also help in some cases to pull the data into a temp table, and then left...
April 9, 2009 at 2:59 pm
Substring and Charindex can do that pretty well. But first, what do you want to do if the name is "James W Smith", or "Morgan Mac Donald"? Do...
April 9, 2009 at 2:56 pm
If it's giving multiple result sets, it's got multiple selects.
Go ahead and post the script. That'll definitely help.
April 9, 2009 at 2:51 pm
The only way to force the sequence is to make them separate queries. That doesn't mean a CTE or derived table, it means a table variable or temp table....
April 9, 2009 at 2:46 pm
Take a look at Count, and Group By in Books Online. That will do exactly what you need.
April 9, 2009 at 2:08 pm
Either of those methods will work if written correctly.
If they don't do what you need, you need to clarify what you are trying to do.
April 9, 2009 at 1:48 pm
Stupidly enough, you will get that error because of the Cast, even with the Where clause limiting it. I've seen that dozens of times. You shouldn't, but you...
April 9, 2009 at 1:38 pm
Lynn Pettis (4/9/2009)
April 9, 2009 at 1:35 pm
Yep, a column alias will also be needed. Missed that one.
April 9, 2009 at 1:33 pm
Viewing 15 posts - 9,991 through 10,005 (of 14,953 total)