Viewing 15 posts - 1,456 through 1,470 (of 1,492 total)
dbalmf (3/6/2014)
I have a Stored Proc which populates a table and then uses BCP to output the table into a flat file and lastly ftp the file out to...
March 6, 2014 at 5:13 am
You could always use
select cast((35622.15/2) as decimal(15,2)) AS P1, 35622.15 - cast((35622.15/2) as decimal(15,2)) AS P2
March 6, 2014 at 5:06 am
Yep, it should be replicated.
March 4, 2014 at 8:34 am
Log Shipping takes care of stored procedures, et al. The thing it does not (at least how we use it) do is to keep the jobs and security synchronized.
March 4, 2014 at 8:27 am
Welsh Corgi (3/4/2014)
Here is a miserable attempt:
DECLARE @RunDate SmallDateTime
DECLARE @CurrentDate SmallDateTime
DECLARE @RunDateWoTime SmallDateTime
SET @CurrentDate = GETDATE()
SET @RunDate = DATEADD(day,-1,@CurrentDate)--...
March 4, 2014 at 8:21 am
Dirrect the query to a temp table saving the count then output based on criteria and if you need the table do a query of the temp table.
March 3, 2014 at 1:36 pm
Glad I could help.
Do you understand what I did?
February 28, 2014 at 12:29 pm
The value of the trigger is that it will fire from the stored procedure or say SSMS. So creating a stored procedure to populate the audit may not be...
February 28, 2014 at 12:27 pm
Here is quick and dirty:
Declare @startdate datetime = cast(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0)as Date)
Declare @enddate datetime = cast(DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE())+1, 0)as Date)
SELECT wh_num, QtyReceived, QtyShipped, Adjustments, endBalance
FROM (
Select sum(act_quantity)...
February 28, 2014 at 12:22 pm
halifaxdal (2/28/2014)
Steve Jones - SSC Editor (2/28/2014)
February 28, 2014 at 12:17 pm
I almost said that but could not remember. :hehe:
February 27, 2014 at 12:02 pm
This happened to one of our developers.
We tried everything with the intellisense setup with multiple reboots. No luck.
He had to reinstall SSMS to get it to...
February 27, 2014 at 9:32 am
adonetok (2/27/2014)
I need to create a function to convert int to varchar.input example: 3/12/567/8923/55668
output: 00003/00012/00567/08923/55668
Can some expert help me?
If your column name was mcol
SELECT RIGHT('00000' + CAST(mcol AS VARCHAR(10)), 5)...
February 27, 2014 at 8:37 am
Look at Eugene Elutin post.
In your code the CROSS JOIN APF is not correct. Remove it and you might get something back.
In Eugene's post he...
February 20, 2014 at 12:57 pm
It looks like you did not get all the code copied.
February 20, 2014 at 12:49 pm
Viewing 15 posts - 1,456 through 1,470 (of 1,492 total)