Viewing 15 posts - 226 through 240 (of 388 total)
Isn't this
(s.credit IS NULL AND b.status = 'OUT' AND b.boxid NOT IN (select boxid from USFPIMS..box)
AND
...
May 8, 2008 at 2:17 pm
You cannot execute stored procedures from within UDFs, and sp_executesql is a stored procedure.
You have to find other way to do your task, it seems.
Piotr
May 7, 2008 at 4:22 pm
What is the type of tstamp column?
Piotr
May 7, 2008 at 2:57 pm
This is in fact interesting. I created a DDL trigger for database create/alter/drop events.
create trigger trigddl
on all server
for CREATE_DATABASE, DROP_DATABASE, ALTER_DATABASE
as
SELECT EVENTDATA().value('(/EVENT_INSTANCE/TSQLCommand/CommandText)[1]','nvarchar(max)')
It is triggered with no probs when I...
May 7, 2008 at 11:30 am
The reason is that Excel is using double datatype which is exactly same as float in SQL Server.
Piotr
May 7, 2008 at 7:53 am
Some numbers cannot be stored with infinite precision in computers because computers in the end store only 0s and 1s. Some datatypes are more precise than others, but never 100%...
May 7, 2008 at 7:14 am
UNPIVOT or UNION ALL might be more useful 🙂
right :Whistling:
May 7, 2008 at 6:52 am
Look at the PIVOT command in BOL, this should do the job.
Piotr
May 7, 2008 at 4:38 am
I had some problems with moving data the other way, from Sybase. It turned out to be driver issue. Took at these tables and try to find out what are...
May 7, 2008 at 4:37 am
if there are no inserts, maybe the database can be set read only?
May 7, 2008 at 3:37 am
Sorry for the question, but have you checked that the firewall doesn't stand in the way?
Piotr
May 6, 2008 at 4:13 pm
You can open MS Access, create new database and link two tables - one from excel spreadsheet and one from SQL Server.
then you can create new query and run update...
May 6, 2008 at 11:21 am
You can name the linked server whatever you like in GUI also:
in Linked server enter name you want to use
in Provider select SQL Native Client
in Data source enter server machine...
May 6, 2008 at 9:14 am
Hm.. according to BOL you cannot create a synonym for database, only for objects existing in database (roughly speaking)
Synonyms can be created for the following types of objects:
Assembly (CLR) Stored...
May 6, 2008 at 7:44 am
Can you post the connection string you use?
You can force client to use given protocol in connection string by prefixing server name with tcp: or np:
Piotr
May 2, 2008 at 6:47 am
Viewing 15 posts - 226 through 240 (of 388 total)