Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Having Trouble with first SQL 2012 Database Expand / Collapse
Author
Message
Posted Monday, April 15, 2013 2:44 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, January 7, 2014 12:24 PM
Points: 39, Visits: 110
bump
Post #1442499
Posted Monday, April 15, 2013 3:34 PM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 7:47 AM
Points: 20,739, Visits: 32,523
dob111283 (4/12/2013)
This may be a stupid question but everytime I make a new command or query with T-SQL, do I have to open up a new query window or can I just delete the previous query and type in the blank of said query?


No, you don't have to open a new query window. You don't even have to delete what is already in the current window. You can type a new query, hightlight it and execute it. I do it all the time. Sometimes I'll also comment previous code so I don't have to highlight just the code I want. I usually do this when I need the code in the query window for things I am working on.



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1442511
Posted Monday, April 15, 2013 4:49 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: General Forum Members
Last Login: Today @ 7:43 AM
Points: 35,371, Visits: 31,913
dob111283 (4/15/2013)
bump


At this point, my recommendation is to press the {f1} key and begin reading Books Online for answers to some of these questions. It will not only help you now, but you'll become more familiar with it each time you use it and you'll be able to find much more complicated things in the future without resorting to "Bumps".


--Jeff Moden
"RBAR is pronounced "ree-bar" and is a "Modenism" for "Row-By-Agonizing-Row".

First step towards the paradigm shift of writing Set Based code:
Stop thinking about what you want to do to a row... think, instead, of what you want to do to a column."

(play on words) "Just because you CAN do something in T-SQL, doesn't mean you SHOULDN'T." --22 Aug 2013

Helpful Links:
How to post code problems
How to post performance problems
Post #1442535
Posted Monday, April 15, 2013 5:08 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Tuesday, January 7, 2014 12:24 PM
Points: 39, Visits: 110
Thank you for both answers. I'll work on it.
Post #1442541
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse