Viewing 15 posts - 11,701 through 11,715 (of 13,469 total)
following up on Alvin's question, which is important...what happens when you go to the spot below...what do you see?

January 28, 2009 at 11:12 am
on every Windows machine, there is an Administrators group, and by default a specific login named Administrator. On laptops it is typical that every login on the laptop become an...
January 28, 2009 at 10:54 am
it sounds like the following occurred:
someone created the view, and when you select from the view, you get the results you saw.
Then, in Enterprise Manager, they edited the view, aliasing...
January 28, 2009 at 10:37 am
there is no need to start a new thread;
continue the thread you started on the same question here:
http://www.sqlservercentral.com/Forums/Topic643690-19-1.aspx
if you are having trouble understanding some of the answers there, add a...
January 28, 2009 at 10:31 am
Here's how i understand the advantage:
if we are talking about a script that is doing something like updating data or something, a procedure has an advantage:
I'm sure you've seen this:...
January 28, 2009 at 10:15 am
wierd, i've always used a varchar(40) for GUIDS/NEWIDs, but when i run this code, you are right, they are always 36 characters:
declare @newid varchar(200)
select @newid = newid()
select len(@newid) as...
January 28, 2009 at 9:54 am
i get that error if the database is set to compatibility mode "70"; but at 80 or above it works fine....
maybe the server you are playing with is an upgrade...
January 28, 2009 at 9:44 am
i think the error is here:
the select into would insert a column name dColumn_name:
insert into #DISTINCTC SELECT Column_Name FROM INFORMATION_SCHEMA.COLUMNS WHERE Table_Name = 'AGEN'
------------------------
--select * from #DISTINCTC
the cursor looks for...
January 28, 2009 at 7:49 am
in that case, it is impossible, unless you modify your table to include an identity column.
create table emp
(
empID int identity(1,1) not null primary key,
emp_id char(4),
emp_name char(15),
emp_address char(15)
)
insert emp(emp_id,emp_name,emp_address) values('e001','A','x')
insert emp(emp_id,emp_name,emp_address)...
January 28, 2009 at 7:33 am
excellent!
that helps a lot, thanks. I can script and test agaisnt your example data now.
but what about the business logic?
what makes the record "e001 ...
January 28, 2009 at 7:25 am
not enough information;
what makes the record e001 A valid,
and the e001 I...
January 28, 2009 at 7:12 am
OK in another shameless adaptation of Tally examples, I'll attempt to get Jeff Moden some more recognition.
Here is a propercase function based on the Tally table. here I'm checking for...
January 27, 2009 at 12:08 pm
Typically, you want to use a Tally or Numbers table to "fill in the gaps" for sequences or dates.
I couldn't get my mental arms around your example to change this...
January 27, 2009 at 11:43 am
SELECT CONVERT(VARCHAR,@YOURDATECOLUMN,101),HOUR(YOURDATECOLUMN)
FROM YOURTABLE
group by CONVERT(VARCHAR,@YOURDATECOLUMN,101),HOUR(YOURDATECOLUMN)
January 27, 2009 at 10:56 am
Viewing 15 posts - 11,701 through 11,715 (of 13,469 total)