Viewing 15 posts - 10,651 through 10,665 (of 14,953 total)
Linked servers can't directly pass Windows authentication information more than one link. So if you log in from a workstation to a server (that's not installed on the workstation)...
March 5, 2009 at 9:46 am
Create a table that's something like this:
create table dbo.EmailQueue (
ID int identity primary key, -- Just to have something here
DateAdded datetime not null default(getdate()), -- When was it added
SendTo varchar(100)...
March 5, 2009 at 9:41 am
Can't see your sample XML, but from the description of what you're talking about, you should take a look at "for XML" in Books Online. It's how you change...
March 5, 2009 at 9:24 am
I'm afraid I don't see the purpose of nesting these cursors. The only reason I know of to do that is to take a value from the outer cursor...
March 5, 2009 at 9:21 am
As a perhaps cynical note on this, keeping a running list of your accomplishments at a job also makes it much easier to update your resume if/when you find you...
March 5, 2009 at 7:56 am
Would end up looking like what I've attached here.
March 4, 2009 at 3:05 pm
Bob, I've had that song in my head ever since it was brought up that Mangle was allegedly doing so.
I also have to admit I've had a long-term goal of...
March 4, 2009 at 2:27 pm
Assuming you're on SQL 2005 (from the forum you posted in), something like this should work:
create table #T (
ID int identity primary key,
Year char(4));
insert into #T (Year)
select '1800' union all
select...
March 4, 2009 at 2:25 pm
You have to parse the string into a table of values, or use dynamic SQL. I recommend parsing, because that doesn't open up injection security issues.
The fastest way I...
March 4, 2009 at 2:19 pm
I generally do it as one job, with a specific sequence of actions to take. That way, if one takes a bit longer than you allocated for it, it...
March 4, 2009 at 1:33 pm
If an index is below a certain size, defragmentation doesn't end up doing anything. From what I can see in the data you posted, the index is tiny, so...
March 4, 2009 at 1:29 pm
You need the number of entries per year? Right?
How about something as simple as:
select Year, count(*) as Qty
from dbo.MyTable
group by Year
order by Year;
Even if it's varchar, that should work.
March 4, 2009 at 1:14 pm
Can you provide a sample of what the data looks like? I'm not quite visualizing it from your description.
If, for example, you have dates that look like this, "1/2/1800",...
March 4, 2009 at 11:36 am
I'm going to be intentionally offensive here.
I just read the other thread, and I'm going to say that Mangal is one of the vicious people who feel the need to...
March 4, 2009 at 8:05 am
Viewing 15 posts - 10,651 through 10,665 (of 14,953 total)