Viewing 15 posts - 2,611 through 2,625 (of 7,191 total)
It depends what sp_HostProcess does. For example, if it creates a permanent table (or a global temp table) then you're likely to get an error in one of the...
May 18, 2016 at 2:54 am
I don't know anything about AS/400, but when using linked servers you have to use the four-part naming convention, specifying (I think) the server, the catalog, the library and the...
May 18, 2016 at 2:48 am
Yes. You have to change MyDatabase for the actual name of the database on the remote server.
John
May 18, 2016 at 2:27 am
DELETE FROM DB2400_WRITEPROD.MyDatabase.PALTEMP.CNTUPDR
John
May 18, 2016 at 2:19 am
In which case, can I borrow your car, please? It doesn't appear to have used any fuel on any of its journeys!
John
May 17, 2016 at 9:30 am
Please will you check - is TableNameT1 actually a table, or is it a view?
SELECT type_desc FROM sys.objects
WHERE SCHEMA_NAME(schema_id) = 'dbo'
AND OBJECT_NAME(object_id) = 'TableNameT1'
John
May 16, 2016 at 7:06 am
Are you saying that when you work with BusinessDate on its own, you don't get the error, but you do when you include other columns in your query? That...
May 16, 2016 at 5:51 am
Yes, the process is different from that for user databases. Search for "moving system databases sql server" and you'll soon find how to do it. I can't see...
May 16, 2016 at 2:58 am
Sergiy (4/28/2016)
The names don't affect performance or quality of the code anyway.
It's not a bad coding practice either.
The...
April 29, 2016 at 8:44 am
Well, yes - since you've tested in the WHERE clause that that condition is true, you don't need to test again with a CASE expression. But there's no syntax...
April 29, 2016 at 8:26 am
Good - does that work now, then? By the way, don't use TOP without an ORDER BY clause, since there's no guarantee which row you'll get.
John
April 29, 2016 at 8:18 am
Probably Zip4 is an invalid column, then. Do you get a similar error for this?
SELECT TOP 1 Zip4
FROM TimCIS.dbo.Legis_Districts
John
April 29, 2016 at 7:53 am
Thanks Drew. I didn't know that. It doesn't seem to make a difference to the execution plan in this particular case, but I'll certainly bear it in mind...
April 29, 2016 at 7:39 am
Well, you did mention SSMS! But anyway, that's easy. Use sqlcmd to call the stored procedure, and wrap that in a batch file.
John
April 29, 2016 at 5:43 am
Presumably the collation of the database you're creating the view on isn't Latin1_General_BIN? I think the easiest way to solve this would just be to put the same COLLATE...
April 29, 2016 at 5:18 am
Viewing 15 posts - 2,611 through 2,625 (of 7,191 total)