Viewing 15 posts - 2,266 through 2,280 (of 3,543 total)
![]() | OR - as someone ![]() |
Either/or, swings and...
July 5, 2005 at 10:13 am
In that case you will need to use OPENDATASOURCE if the database is known or OPENROWSET if both server & database is parameterized
July 5, 2005 at 9:57 am
Also bracket the values to stop injection, ie
[databasename].[username].[tablename]
July 5, 2005 at 7:39 am
or
SELECT SUBSTRING([name],PATINDEX('%[^0]%',[Name]),LEN([Name])) FROM @A
July 5, 2005 at 7:34 am
![]() | Before someone else complains |
Not me Remi I wasn't complaining, honest
July 4, 2005 at 8:20 am
Bet not Remi
Like the solution though
But aren't you teaching bad habits, using system tables, tut tut...
July 4, 2005 at 7:53 am
What account is SQL Server service running under, if it is Local System then it will not be able to access the network, see the following from BOL
When xp_cmdshell is...
July 4, 2005 at 7:43 am
You need to include the single quotes for the tablename data in the insert like this
EXEC ('Insert dbo.MgtTable_Records (Table_Name ,No_Records)
Select ''' + @tablename + ''',Count(*) As Counter From ' + @tablename...
July 4, 2005 at 7:28 am
If you check Stewart's 2nd post he defines the format of imported column as yyyymmddhhmm or (yyyyddmmhhmm) and therefore ISDATE will not work as...
July 4, 2005 at 3:44 am
In general I would agree with the xxx domain but agree with jay about some content may not wish to be there.
If this is to be voluntary then it would...
July 1, 2005 at 8:00 am
Ok I'll try (and wait for the fallout )
SELECT CAST(SUBSTRING(CardExpDate,1,2) as int) AS [CCExpMonth],
CAST(CASE WHEN SUBSTRING(CardExpDate,5,2) > '50'
THEN STUFF(SUBSTRING(CardExpDate,3,4),1,2,'19')
ELSE SUBSTRING(CardExpDate,3,4)
END...
July 1, 2005 at 7:44 am
But the question stated SQL Server 2005
July 1, 2005 at 6:58 am
if DTSSource("Col009") = null then
DTSDestination("Col009") = null
elseif Trim(DTSSource("Col009")) = "" Then
DTSDestination("Col009") = null
else
DTSDestination("Col009") = mid(DTSSource("Col009"),1,4) & "/" & mid(DTSSource("Col009"),5,2) & "/" & mid(DTSSource("Col009"),7,2) & " " &...
July 1, 2005 at 4:37 am
OK assuming by your first post that
1. You do not know how many columns are in the table
2. The numbers in the column names are not consecutive
3. ID is always...
July 1, 2005 at 4:29 am
Viewing 15 posts - 2,266 through 2,280 (of 3,543 total)