Viewing 15 posts - 346 through 360 (of 363 total)
[font="Verdana"]
Try this ...
Procedure:
alter procedure sp_list_orcon_cat_a
@start_date datetime
as
declare @lErrorNo integer
declare @lRowsAffected integer
set @start_date = convert(datetime, '24/07/2007', 103)
begin
select convert(varchar(10), report_date, 103) AS rep_date,
priority_text,
dt_switch,
dt_arrive,
datediff(minute, dt_switch, dt_arrive) as timediff
fromdbo.cadcasedetails
where (dbo.cadcasedetails.dt_arrive...
MH-09-AM-8694
April 2, 2008 at 5:17 am
[font="Verdana"]
shamshudheen (4/2/2008)
ramadesai108 (3/28/2008)
I am trying to insert a new record in true db grid with bound data from a vb6 application. The bound control is...
MH-09-AM-8694
April 2, 2008 at 3:17 am
[font="Verdana"]Hopes, the below URL might help you.
http://www.mssqltips.com/category.asp?catid=9
Even I am blank in this area. Let me know the solution you get.
Thanks in adavace,
Mahesh[/font]
MH-09-AM-8694
April 2, 2008 at 12:57 am
First execute the select subquery and confirm whether you are getting desired resultset. Error describes itself that your subquery is returning more that one records.
Let us know,
Mahesh
MH-09-AM-8694
April 1, 2008 at 11:02 pm
ramadesai108 (4/1/2008)
I have a stored procedure that does only select. Then In the application I have a bound true db grid that displays the data. When...
MH-09-AM-8694
April 1, 2008 at 10:31 pm
Through DTS (Data Transfer Services) you can Import-Export data. Search Book On Line for details.
Refer below url as well.http://www.microsoft.com/technet/prodtechnol/sql/2000/deploy/dtssql2k.mspx
Thanks,
Mahesh
MH-09-AM-8694
April 1, 2008 at 4:13 am
blahknow (3/25/2008)
My sp recieves name of table as parameter and is supposed to show its' number of rows.
Since the table name is a variable i do it wherby Dynamic...
MH-09-AM-8694
April 1, 2008 at 3:18 am
[font="Verdana"]
INSERT INTO #financial_consult
SELECT
accountno,
lastname1,
name1,
name2,
city,
street,
number,
zip,
phone1,
phone2,
phone3,
date,
date_of_birth1,
FROM ' +
@source_file +
'
WHERE
date>=' + @mindate + ' AND
date<=' + @maxdate
It...
MH-09-AM-8694
March 31, 2008 at 2:38 am
ramadesai108 (3/29/2008)
I don't think you understand how bound true db grid works. It displays data from the select query and tries to update the database using...
MH-09-AM-8694
March 30, 2008 at 11:50 pm
🙂 Don't try to do the things you like to do in project. Try those which project like. (I am talking in performance context, as Jeff has mentioned using tally...
MH-09-AM-8694
March 29, 2008 at 4:20 am
[font="Verdana"]Better you check whether the record exist into the table before inserting. You can do in inside the SProc.
i.e.
...
If Not Exist (Select {PK column(s) From {Table} Where (where criteria)})
...
MH-09-AM-8694
March 29, 2008 at 12:09 am
hopes it will give you an idea.
http://www.sqlteam.com/article/parsing-csv-values-into-multiple-rows
Thanks,
MH-09-AM-8694
March 28, 2008 at 5:06 am
Refer below URLs as well.
http://www.sqlservercentral.com/articles/Stored+Procedures/2977/
http://weblogs.sqlteam.com/jeffs/archive/2007/06/26/60240.aspx
Thanks,
MH-09-AM-8694
March 28, 2008 at 3:42 am
Better you go for XML. Build one XML string at front end and pass it to the SProc. And inside that SProc use sp_preparexml, sp_removexml system SProcs to prepare and...
MH-09-AM-8694
March 28, 2008 at 2:53 am
[font="Verdana"]try this ...
Insert Into B Select * From A Where (the part you wants to insert into table B from table A)
Go
Insert Into C Select * From A Where...
MH-09-AM-8694
March 25, 2008 at 10:56 pm
Viewing 15 posts - 346 through 360 (of 363 total)