Viewing 15 posts - 106 through 120 (of 358 total)
How about something like this?
Declare @Table Table (OrderNo int, [LineNo] int, Product varchar(50), Result varchar(50))
Insert Into @Table
Select 1,1, 'ABC', NULL UNION ALL
Select 1,2, 'XYZ', 'Requires Review' UNION ALL
Select 2,1, 'FooBar',...
April 27, 2009 at 11:05 am
There are a couple of ways you can do this. Here is one example.
Declare @Table Table (id int, color varchar(10))
Insert Into @Table
Select 1, 'red' UNION ALL
Select 1, 'blue' UNION...
April 26, 2009 at 9:09 am
Based off your example you could run a query like this. However, this would pull back all the data from both tables and as you said the data is...
April 25, 2009 at 10:33 pm
The EXCEPT and INTERSECT operators can also help you compare data between two different queries. They provide a pretty easy way to compare data.
April 25, 2009 at 11:20 am
GilaMonster (4/25/2009)
Ken Simmons (4/24/2009)
April 25, 2009 at 7:05 am
This article will help you identify the long running jobs. Although, you should probably do some more troubleshooting and look for any blocking before restarting SQL Server. You really...
April 24, 2009 at 11:09 pm
You may be able to use a third party transaction log reader to track it down. I have used Apex Log Reader in the past to find out who...
April 24, 2009 at 3:07 pm
Your table has a defualt defined that will never work. What a default will do is if you do not specify a value for a column (which you are...
April 24, 2009 at 1:18 pm
If the hex column is nchar(10), something else must be going on to cause the error message. For example, the code below works in the scenario described. Do...
April 24, 2009 at 12:13 pm
Service Pack 2 in the @@Version query is referring to the Operating System not SQL.
April 24, 2009 at 9:32 am
Do you mean the databases are attached to a SQL Server 2008 instance using 80 as the compatability level? I have never tried this if that is the case,...
April 24, 2009 at 9:24 am
You can use the built in reports. They kind of resemble the TaskPad view from SQL 2000. Right Click the database, Select Reports -> Standard Reports -> Disk...
April 24, 2009 at 9:13 am
You can use the generate scripts wizard. Here is an article that describes how to do it.
April 23, 2009 at 9:10 pm
The data being passed in must not match for some reason (spaces or something). You may want to try to do an LTRIM on the prefix to make sure...
April 22, 2009 at 8:32 am
I don't see you converting those in your function. Did you post a trimmed down version? If not, you need to add those to the case statement.
April 22, 2009 at 8:15 am
Viewing 15 posts - 106 through 120 (of 358 total)