Viewing 15 posts - 16 through 30 (of 272 total)
For these kinds of highly detailed specifications, my hourly rate is $300.00/hr (USD) open ended.
June 12, 2012 at 7:01 am
You could set up an insert trigger on the first table.
But what you probably really want is to insert into both tables within a single transaction using...
June 12, 2012 at 6:55 am
Great question.
SQL noir: Things aren't always what you expect.
June 6, 2012 at 7:12 am
Days in a month (assumes current month):
DECLARE @ThisDate DATE = GETDATE()
select datepart(dd,dateadd(dd,-1,dateadd(mm,1,dateadd(mm, datediff(mm, 0, @ThisDate), 0)))) -- Number of days in the current month
It looks like...
May 29, 2012 at 9:10 am
I fell victim as well and answered tempdb, but I learned something.
I don't feel so bad seeing that lots of folks answered the same.
May 29, 2012 at 8:56 am
These sorts of questions always make me wonder if what I think I know is correct.
Why would there more than one "master"? Seems like a simple question, but what...
May 25, 2012 at 7:48 am
Steve Jones - SSC Editor (5/24/2012)
Steve Cullen (5/24/2012)
May 24, 2012 at 12:08 pm
Just my opinion, but I think bcp would be simpler for this. The fixed width format file can be generated quickly from a staging table and a novice won't...
May 24, 2012 at 8:14 am
Jeff Moden (5/15/2012)
pnpsql (5/15/2012)
declare@STRvarchar(20)= '[p]a]a]s]s][p'
declare@posint
May 16, 2012 at 7:21 am
RBarryYoung (5/15/2012)
Jeff Moden (5/15/2012)
RBarryYoung (5/15/2012)
Eugene Elutin (5/15/2012)
jonas.kasper (5/15/2012)
I am creating a job that will send emails every morning showing different data that has occured during the last day....
May 16, 2012 at 6:59 am
Why don't you simply join to the lookup table?
Why do you need a case expression at all?
May 15, 2012 at 4:45 pm
Just because we can generate a case statement, doesn't mean we should.
May 15, 2012 at 3:21 pm
If I read your question correctly, you want to generate the query. I've setup the table :
CREATE TABLE EmploymentStatus (ID int PRIMARY KEY NOT NULL IDENTITY(1,1),
...
May 14, 2012 at 7:30 am
You can filter dates and exclude null values.
... WHERE dateordered IS NOT NULL
AND (shipped_on BETWEEN @Start AND @End)
May 11, 2012 at 8:32 am
You could use the Create Data Reader User template. It will create a login, set a default database, create the user and add db_datareader privileges.
In the view menu, select...
May 11, 2012 at 8:22 am
Viewing 15 posts - 16 through 30 (of 272 total)