Viewing 15 posts - 46 through 60 (of 155 total)
Hmm... maybe your Name column (in table A) has the char datatype (I expected it to be varchar). In this case, try:
SELECT b.*, a.code FROM a INNER JOIN b ON b.text...
October 20, 2004 at 12:24 am
You could try something like this:
SELECT b.*, a.code FROM a
INNER JOIN b ON b.text LIKE '%'+a.name+'%'
Warning: this may give you some duplicates...
Razvan
October 18, 2004 at 2:53 pm
If you want to call a UDF with a parameter whose value is taken directly from a query (that may return more than one row), I'm afraid that it's not...
October 16, 2004 at 11:03 am
Here is an article by Erland Sommarskog, SQL Server MVP, that shows several solutions to this problem, comparing performance, ease of use and other aspects:
http://www.sommarskog.se/arrays-in-sql.html
Razvan
October 16, 2004 at 10:42 am
See the following thread:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=23&messageid=138953
Maybe it will help...
Razvan
October 11, 2004 at 12:14 am
Although your DDL suggests that you are using Oracle, I will give you two T-SQL solutions (because this is a MS SQL Server site). Neither of them provides exactly the requested result, but...
October 10, 2004 at 9:34 am
Assuming that horizon is your database name, the backup statement should work.
The LOG word can play two roles: a clause of the BACKUP statement or a function (logarithm); Query...
October 10, 2004 at 12:51 am
The trigger will not be fired again, unless the RECURSIVE_TRIGGERS database option is set (by default it's not). There is no updated pseudo-table, there are only the inserted and deleted...
October 9, 2004 at 12:39 am
If a login is already created for that user, you can use:
SELECT name, sid FROM master..sysxlogins WHERE (xstatus & 4) = 4
The tricky part would be now to convert...
October 9, 2004 at 12:39 am
You wrote:
[...] I am trying to write error handling into the triggers that will allow the initial insert to proceed even if the insert into the secondary table fails for...October 8, 2004 at 11:40 am
You can use a temporary table (not a table variable) or a delimited string.
Razvan
October 6, 2004 at 1:55 am
You should do something like this:
INSERT INTO dbo.SUS_Numbers (Number, Total) SELECT col1, (SELECT count(*) FROM dbo.sus_data WHERE ItemInfo LIKE dbo.Import.col2 AND Activity='Download' AND Status='Succeeded') as Total FROM dbo.Import
Razvan
October 6, 2004 at 1:55 am
If you are interested to read why others think that multiple instances can be a good thing, read:
http://www.winnetmag.com/SQLServer/Article/ArticleID/8686/8686.html
Razvan
October 5, 2004 at 6:44 am
This means that you can run up to 50 instances of SQL Server on the same machine; This way, up to 50 separate servers are fighting for the same CPU...
October 5, 2004 at 6:28 am
It seems that there is no INFORMATION_SCHEMA view for routine privileges. Other ways to retrieve this information are: using the sysprotects table or using the sp_helprotect stored procedure.
Razvan
October 1, 2004 at 11:54 pm
Viewing 15 posts - 46 through 60 (of 155 total)