Viewing 15 posts - 7,246 through 7,260 (of 15,381 total)
Lowell (8/6/2013)
August 6, 2013 at 3:37 pm
Please in the future post ddl and sample data in a consumable format. Look at this as an example.
if OBJECT_ID('tempdb..#Something') is not null
drop table #Something
create table #Something
(
Account int,
MyDate date,
Amt numeric(9,2)
)
set...
August 6, 2013 at 3:16 pm
Sean Grebey (8/6/2013)
August 6, 2013 at 2:46 pm
This does look difficult to explain with words. Using ddl this probably would be a lot simpler. Ultimately you need some help putting together a query which means that somebody...
August 6, 2013 at 2:40 pm
krypto69 (8/6/2013)
If I do this it works..insert into Vendors
SELECT * FROM dbo.itfAPVEND()
Thanks for your help Sean!
Glad you got it working. I must have been typing my last response when you...
August 6, 2013 at 1:40 pm
Sean Lange (8/6/2013)
select * from dbo.itfAPVEND()
Be careful here though. You have a table valued function but it is a multi-statement function. The performance can end up even worse than scalar...
August 6, 2013 at 1:40 pm
select * from dbo.itfAPVEND()
Be careful here though. You have a table valued function but it is a multi-statement function. The performance can end up even worse than scalar functions.
August 6, 2013 at 1:32 pm
Lrobinson 93181 (8/6/2013)
Step 1 query gets me this:
c_iD1 c_rep c_Date
11111 23 ...
August 6, 2013 at 1:29 pm
branovuk (8/6/2013)
- db1 has record like this:
record_id, column1, column2, column3, column4.
- db2 has record like this:
record_id, column_id (based...
August 6, 2013 at 1:15 pm
branovuk (8/6/2013)
I have two databases, db1 and db2.
I am pulling data from db1 with view which I have to insert in db2 table:
- if record in db2 with same...
August 6, 2013 at 1:00 pm
Here is another method.
DECLARE @y int = 2012, @m int = 7
select DATEADD(day, -1, dateadd(mm, datediff(mm, 0, cast(@m as varchar(2)) + '/01/' + cast(@y as char(4))) + 1, 0))
August 6, 2013 at 12:56 pm
OK trying once again to piece this together.
Step #1 is easy enough. I think we got that. Your description of Step #2 doesn't make sense here.
2. Nest the first...
August 6, 2013 at 12:35 pm
That is excellent!!! I know that I was at least one of the people who has requested including the author. That in combination with release date and sorting makes the...
August 6, 2013 at 11:02 am
Annee (8/6/2013)
select count (*) from table where clientName = @clientName....
which is actually supposed to be
select count...
August 6, 2013 at 9:53 am
Annee (8/6/2013)
CREATE PROCEDURE [dbo].[pr_GetVendorInfo]
(
@ClientName nVarChar(15),
@VendorName nVarChar(40),
@InvoiceType nVarChar(30)
)
AS
declare @sql nvarchar(2000)
set @sql = 'SELECT COUNT(*) FROM AgencySupplierPartner '
...
August 6, 2013 at 9:17 am
Viewing 15 posts - 7,246 through 7,260 (of 15,381 total)