Viewing 15 posts - 5,431 through 5,445 (of 15,381 total)
Dominic Gagné (3/17/2014)
I need to create a StoredProc who will load a jpeg image from the hard drive and return it to a remote SQL Server. I have found...
March 17, 2014 at 3:00 pm
It seems like you are getting dangerously close to a "catch all" query. You should read up on that topic here. http://sqlinthewild.co.za/index.php/2009/03/19/catch-all-queries/%5B/url%5D
March 17, 2014 at 2:58 pm
jbalbo (3/17/2014)
My where looks like ..
WHERE
(CostCenter.Code = '918')
AND ((CostCtrGrp.AdmitDate <= @EndDate) AND...
March 17, 2014 at 2:57 pm
JP10 (3/17/2014)
Thanks for the help really appreciate it. Looks like I solved my problem by using a cursor and updating the StartDates manually and then selecting that table...
March 17, 2014 at 2:52 pm
altana (3/17/2014)
Sean Lange (3/17/2014)
altana (3/17/2014)
It still works same.
How do you know that the users are entering the right values in your textbox?
Your C# code is passing the value from a...
March 17, 2014 at 9:48 am
You could greatly simplify this proc and remove about 40% of the lines which don't really provide anything.
create proc [SP$insert]
(
@p1 nvarchar(100),
@p2 nvarchar(100),
@id int output
)
as
set nocount on
select @p2 --What value...
March 17, 2014 at 9:45 am
'Warning 1 The currently targeted framework ".NETFramework,Version=v4.0,Profile=Client" does not include "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which the referenced assembly "CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304, processorArchitecture=MSIL" depends on. This caused the referenced assembly...
March 17, 2014 at 9:39 am
This is the last form. I can't still insert.It's not giving error. There are only warnings.
Did you look at my last post? The logic in your proc can very easily...
March 17, 2014 at 9:36 am
altana (3/17/2014)
It still works same.
How do you know that the users are entering the right values in your textbox?
Your C# code is passing the value from a textbox as p2.
cmd.Parameters.Add(new...
March 17, 2014 at 8:40 am
sten.f.soerensen (3/17/2014)
I'm looking for a way to extracting the...
March 17, 2014 at 8:34 am
altana (3/17/2014)
Adi Cohn-120898 (3/17/2014)
Could be that you had the wrong value in @p2, so the flow did not get inside the if statement.Adi
No, it's the right value. Wenn I insert...
March 17, 2014 at 8:03 am
Slightly off topic but you might look closely at what @@IDENTITY returns. Almost everytime I see this the person really wants the identity value from the insert they just executed....
March 17, 2014 at 8:02 am
As pietlinden stated you need to provide your sample data in a consumable format. But you also need to provide your results in a meaningful way. You have listed three...
March 17, 2014 at 7:48 am
djj (3/17/2014)
Might also try:
Select * from Productionwhere ISNULL(DeviceName,'Keyboard') = 'Keyboard'
and Owner = 'Mark'
however, this does not use an index for DeviceName.
While this approach is a little easier to understand...
March 17, 2014 at 7:38 am
Hi and welcome to the forums. There are lots of people around here willing and able to help. But posting pictures of your tables does not provide the kind of...
March 17, 2014 at 7:36 am
Viewing 15 posts - 5,431 through 5,445 (of 15,381 total)