Viewing 15 posts - 9,766 through 9,780 (of 13,461 total)
don't convert the varchar, as you'll get truncation issues if you don't say how large to convert to;
the rest is just syntax; you need to escape the single quote to...
March 30, 2010 at 6:27 am
well the implementation is the same, it's just the specifics; the remote server is on a network that has access to the internet, that's a basic assumption.
that network has a...
March 30, 2010 at 6:14 am
mark you did not try my case statement; it does produces the desired results; maybe with the switch from pseudo/sample to your real code something got lost;
here's a full example,...
March 30, 2010 at 6:02 am
the case statement i posted had the priority you stated, so do you mean the "priority" may be dynamic and passed as a parameter or something?
March 30, 2010 at 5:19 am
sounds like a networking issue;
by remote, you mean over the internet, right? not on the same LAN/network?
if it's over the internet, you'd need to make sure the remote server...
March 30, 2010 at 5:17 am
it's been a while since i had to do this;
youy can do it with a case statement, comparing multiple value pairs:
select
[Column A],
[Column B],
[Column C],
[Column D],
[Column E],
case
when [Column C]...
March 30, 2010 at 5:09 am
it's not clear what you are after; if you run the code, it's going to produce results like this:
<li>Bob Smith</li><li>Bill Smith</li><li>Bill Jones</li><li>Bob Jones</li>
you did run the code, right? you know...
March 29, 2010 at 6:20 pm
well too bad about no date so we can't keep the last x months of data; but assuming we can delete all but one(the highest ImageID) for each customer, here's...
March 29, 2010 at 6:06 pm
pretty sure it's simply changing the one parameter to true:
@useself=N'True',...
in that case, the logged in users credentials would be passe dot the linked server, and it would work/fail if they...
March 29, 2010 at 12:41 pm
no...i really need you to actually script out the table; pseudocode doesn't help...for example there is no "blob" data type in SQL ...it could be TEXT/IMAGE/varbinary(max), for example;
Also I ...
March 29, 2010 at 12:33 pm
can you show us the table definition that contains the blobs? ie CREATE TABLE....
if there is a column in the table that has the date in it, you should be...
March 29, 2010 at 11:12 am
ok how about this:
first that other cursor has a logic hole; don't loop thru databaszes, loop thru connections.
i adapted my sp_kill function, which is database specific, to do the whole...
March 29, 2010 at 10:50 am
it's this part:
select
@msg = @msg + 'New Item ....FROM INSERTED
if inserted has 10 rows, @msg is going to have 10 "lines", one for each...
March 29, 2010 at 8:27 am
aww, you didn't answer any of my questions....
well, i'm expecting the followup post that says "help i deleted 2000 jobs and now i need some of them back"
did you backup...
March 29, 2010 at 8:02 am
Viewing 15 posts - 9,766 through 9,780 (of 13,461 total)