Viewing 15 posts - 8,116 through 8,130 (of 13,469 total)
you have to declare and assign the variables for TSQL:
if this is all in TSQL, you might use a cursor like this:
--#################################################################################################
--Linked server Syntax for SQL Server With Alias
--#################################################################################################
declare
@svname Nvarchar(64)
declare...
February 14, 2011 at 2:06 pm
well, i would tackle it with a table defining the hours associated to a givin shift period:
/*--results
RightNow ...
February 14, 2011 at 1:44 pm
SQL will use all available cores unless you tell it not to; you can select it by right clicking the server>>Properties as seen below; my machine is a single proc...
February 14, 2011 at 12:26 pm
every application I've ever seen always had the components of the connection string configurable...whether it's part of the GUI, or an ini/config file, the connection strings going to be configurable...they...
February 14, 2011 at 12:06 pm
I believe the client queries port 1434 and the "SQL Server Browser Service" on the server tells the client which actual port to connect to; it does't try 1433 and...
February 14, 2011 at 11:36 am
hey neat;
what you've done is create an "orphaned" user;
inside the sys tables, a unique SID is assifned to every login or user; you may have encountered this when restoring a...
February 14, 2011 at 8:53 am
no you can't...all sys.* items are read only views; MS wanted to remove the ability to update meta data tables directly, because too many times an unintended consequence resulted in...
February 14, 2011 at 8:40 am
instead of selecting from that table TBL_CYCLE_PARTS,
you instead have to select from some sort of calendar table, with all possible times, and join THAT to your TBL_CYCLE_PARTS;
this will work *i...
February 11, 2011 at 1:51 pm
altering a table...adding/removing columns,creating or altering procs views, etc etc requires ddl_admin permissions.
February 11, 2011 at 1:31 pm
in this specific example, i cannot get it to raise the error, but I've encountered other situations where i must issue the GO command after an ALTER TABLE command before...
February 11, 2011 at 1:25 pm
your example's messing you up... a row of data is just that: each element is related to the others. grabbing a value from another row? why?
if you substitute names for...
February 11, 2011 at 9:24 am
At one place I interviewed at, I had a good preliminary interview with a couple of people, one a manager, and the other an HR-type, but it was all high...
February 11, 2011 at 7:02 am
a quick google lead me to this solution posted from Dalton from http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=70901
declare @myString varchar(255)
select @myString = 'BarCode 1'
-- Define the string of characters that we'll need to pull the...
February 11, 2011 at 6:12 am
I'm in the same camp of not worrying about the trace impact after this article about the near-zero impact of a server side trace where someone actually compared the...
February 11, 2011 at 5:11 am
the integer division, 5,2 is evaluated before the round occurs.
if you divide two integers in SQL, the result is returned in the same datatype...an integer.
That behavior is kind of unique...
February 10, 2011 at 6:29 pm
Viewing 15 posts - 8,116 through 8,130 (of 13,469 total)