Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
Development
»
How to ADD a SQL SERVER name in every row of...
How to ADD a SQL SERVER name in every row of a table.
Rate Topic
Display Mode
Topic Options
Author
Message
qur7
qur7
Posted Tuesday, January 29, 2013 1:07 PM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Yesterday @ 12:00 PM
Points: 144,
Visits: 630
Hi Development Guys,
I need to add a column in a SQL server database table ( which i have done). Now i have to add SQL SERVER name on every row of the table in this new column ( same entry on every row).
Can some please help me how to accomplish that?
Thanks in advance.
Post #1413282
Evil Kraig F
Evil Kraig F
Posted Tuesday, January 29, 2013 1:08 PM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 12:05 AM
Points: 5,688,
Visits: 6,142
UPDATE table SET newcol = @@SERVERNAME
Unless I'm really not understanding the question?
- Craig Farrell
Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.
For better assistance in answering your questions
|
Forum Netiquette
For index/tuning help, follow these directions.
|
Tally Tables
Twitter: @AnyWayDBA
Post #1413285
qur7
qur7
Posted Tuesday, January 29, 2013 6:30 PM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Yesterday @ 12:00 PM
Points: 144,
Visits: 630
Thanks a lot, i already found the update statement and it solved my problem.... Thanks again.
Post #1413409
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.