Viewing 15 posts - 121 through 135 (of 1,085 total)
Try this:
DECLARE @DBA_USERS TABLE( USERNAME varchar(10),
[PASSWORD] varchar(10))
INSERT INTO @DBA_USERS
SELECT 'FIRST', '123' UNION ALL
SELECT 'SECOND', '345' UNION ALL
SELECT 'THIRD', '678' UNION ALL
SELECT 'FOURTH',...
September 22, 2006 at 10:43 am
That's probably better for more information. You'll just have to make a #TempTable with the various TableName(s) in it...
September 15, 2006 at 5:24 pm
Here's a start. You may need to jump databases to get both into one print out...
SELECT CONVERT( varchar(50), so.name) AS TableName,
CONVERT( varchar(25), sc.name) + '(' +
...
September 15, 2006 at 3:23 pm
Hi buddy!
Either you're right or you're SCC razy...
September 11, 2006 at 7:54 am
September 8, 2006 at 2:07 pm
I am not sure what you mean by MAX REVISION. This sounds like a pretty simply query; to that end, I may have misunderstood just precisely what you are looking...
September 8, 2006 at 2:01 pm
If what you are looking for is appending all the possible [Description]s, this should work...
IF EXISTS( SELECT * FROM dbo.sysobjects WHERE id = object_id(N'dbo.Products')
AND OBJECTPROPERTY(id, N'IsUserTable') =...
August 31, 2006 at 11:25 am
This works, but I am thinking you may actually want more than a single character, (or integer) passed into your @Parameter? Hence the need for IN(...).
Therefore I have written...
August 31, 2006 at 8:54 am
Try this:
SET @queryString = 'SELECT ' + @EmployeeNo + ' = b.employee_no, @AccessLevelID = a.Access_Seq FROM ' +
@dbName + '..employee a, ' + @dbName + '..userlog b...
August 29, 2006 at 3:15 pm
You have performed beyond my wildest expectations for not having studied!!!
August 28, 2006 at 3:14 pm
You could try adding an ISNULL, but I am not sure that will increase your processing time.
WHERE( ISNULL( E.Unit, @unit) LIKE '%' + @unit + '%') ...
August 28, 2006 at 2:56 pm
Other than the loop, it is pretty set-based. Good to hear from you again, Mr. Smarty-pants!
August 28, 2006 at 2:51 pm
I tried it a bit different than Gopi Nath Muluka by adding a table with the "prefix" values and using two functions, (one to remove those values rather than directly...
August 28, 2006 at 2:04 pm
Glad I could help. Thanks for replying from another post!
August 25, 2006 at 1:20 pm
Viewing 15 posts - 121 through 135 (of 1,085 total)