Viewing 15 posts - 526 through 540 (of 600 total)
Roger Abram (9/2/2010)
What I am trying to accomplish... dynamically create the table name with today's date......
September 2, 2010 at 1:59 pm
As long as the location name exactly matches:
DECLARE @Location TABLE (LocationID int, LocationName varchar(10))
INSERT INTO @Location
SELECT 1, 'Location A' UNION ALL
SELECT 2, 'Location A' UNION ALL
SELECT 3, 'Location B' UNION...
September 2, 2010 at 12:47 pm
Can you clarify a couple things?
Based on your sample data, service #10 links to specification #10 and specification #11, so how are we determining which spec's value to use?
Also,...
September 2, 2010 at 12:34 pm
sounds like you didnt paste the first single quote. I can't test the executesql statement but I did test the assignment statement, which seems to be where you're getting...
September 1, 2010 at 9:45 pm
Can you give us some test data as it would be stored in the table (formatted as an insert statement)?
September 1, 2010 at 1:39 pm
Try:
declare @db_name nvarchar(max),@SQLString nvarchar(max)
declare @create_date datetime
set @db_name='TestDB'
set @create_date = '2009-08-20'
--select @SQLString ='select @db_name'
--exec (@SQLString)
select @db_name
select @SQLString ='select ' + @db_name + ' as databse,type_desc,create_date,modify_date from [' + @db_name + '].sys.procedures
where...
September 1, 2010 at 1:10 pm
What do you mean by required?
You won't get an error if you dont do it. And depending on what you do with your query window/connection to the DB, you...
September 1, 2010 at 9:43 am
drew.allen (8/30/2010)
If that is the case, you...
August 30, 2010 at 12:51 pm
To make sure I understand your problem, you are defining a view and compiling it, and when you later choose "Script View As" to view its definition, you dont like...
August 30, 2010 at 10:43 am
Is there a reason you are deleting and inserting instead of updating?
August 30, 2010 at 9:07 am
I wouldnt say it qualifies as worst ever. Its long, but its also one table with few conditions and its easy to figure out what its doing. The...
August 30, 2010 at 8:39 am
This would be the join syntax (not tested as I dont have ddl) if you dont want a subquery.
WITH rpfnot (e_id) AS
(
SELECT DISTINCT e_id
FROM RPF
WHERE U_S = 'PPP' ...
August 27, 2010 at 9:31 am
Try running ux2dos on the file (on unix) before trying to load it ...
But based on the error it might not be a unix file issue at all. I assume...
August 26, 2010 at 9:53 am
jkp2311 (8/24/2010)
Yes it is possible using the convert or cast function !!!may be you don't know that..
Its possible to water your lawn with a shotglass.
But if you have a sprinkler...
August 24, 2010 at 12:54 pm
Nelson Petersen (8/24/2010)
1.) If the purchased application is poorly designed or inadequately indexed, who made the decision to buy that software? The decision making...
August 24, 2010 at 8:24 am
Viewing 15 posts - 526 through 540 (of 600 total)