Viewing 15 posts - 6,601 through 6,615 (of 26,490 total)
You really need to show us more and you really need to try and do this yourself first. We have no problems helping you with it but we really...
May 21, 2014 at 8:12 am
sudheerapps436 (5/20/2014)
ALTER PROCEDURE Sample_GetDetails(@len nvarchar(max),@OutNTID VARCHAR(300) OUTPUT)
AS
BEGIN
Declare @name...
May 21, 2014 at 8:05 am
If you look at the execution plan of a query using the BETWEEN operator you will see that it is converted to a >= and <=.
May 20, 2014 at 4:03 pm
vasugunda (5/20/2014)
in between 200 to 250 usd
vasugunda (5/20/2014)
no per month
That would work out to about 2 hours of assistance each month.
Consultants aren't cheap.
May 20, 2014 at 8:27 am
Well, I hope you got what you wanted. I still can't quite figure out how you get your expected results from your sample data as your code really isn't...
May 19, 2014 at 8:12 am
Ramakrishna-148487 (5/18/2014)
for ex:
Select * into #td from transsactions
Transactions tables contains huge data. Like that i...
May 18, 2014 at 1:16 pm
Jeff Moden (5/18/2014)
Lynn Pettis (5/2/2014)
Instead of all the conversions you could use the scalar function msdb.dbo.agent_datetime.For example:
declare @rundate int, @runtime int;
set @rundate = 20140502;
set @runtime = 512;
select msdb.dbo.agent_datetime(@rundate,@runtime);
While that's convenient,...
May 18, 2014 at 1:04 pm
Before I explore any alternatives can you explain how your code works to create the given results based on the sample data?
I'm not sure what you are actually trying to...
May 18, 2014 at 9:48 am
LutzM (5/18/2014)
Lynn Pettis (5/18/2014)
Depending on how many rows and columns are in the lookup table, a table scan of the lookup table may not be an issue. If we...
May 18, 2014 at 9:33 am
Definitely not enough information to help. First thing I would do is read the second article I have linked in my signature block regarding performance issues. It will...
May 18, 2014 at 7:28 am
Eirikur Eiriksson (5/18/2014)
Quick test for the version
USE tempdb;GO
SELECT @@VERSION;
😎
Actually, you run that select statement in any database as @@VERSION returns the information regarding the SQL Server instance, not the database...
May 18, 2014 at 7:25 am
Constraints (or other database objects) don't change on their own. Someone has to run DDL either through SSMS or SQLCMD, or another third party tool that can modify database...
May 18, 2014 at 7:22 am
LutzM (5/18/2014)
...The reason text is variable length text, and should be at the start of the note... but cannot be guaranteed...
This will force the query to perform a table scan...
May 18, 2014 at 7:17 am
Well, didn't take that long.
DECLARE @Mtbl AS TABLE (id INT,Rid INT, DATA VARCHAR(10))
DECLARE @Ctbl AS TABLE (id INT,Rid INT,Tdata VARCHAR(10))
INSERT INTO @Mtbl
VALUES
(1,1,'test'),(1,2,'test'),(1,3,'test'),
(2,1,'test'),(2,2,'test'),(2,3,'test'),
(3,1,'test'),(3,2,'test'),(3,3,'test'),(3,4,'test'),
(4,1,'test'),(4,2,'test'),(4,3,'test'),(4,4,'test');
INSERT INTO @Ctbl
VALUES
(1,1,'Data1'),(1,2,'Data2'),
(3,1,'Data3'),(3,4,'Data4');
/****************Result would be like this **************************/
DECLARE @Rtbl...
May 17, 2014 at 8:23 am
Viewing 15 posts - 6,601 through 6,615 (of 26,490 total)