Featured Products
Product Details
 
 
 
Customer Comments
800-672-4806 | 425-672-4806 | sales@ccscentral.com
User Guest (38.107.179.209)

Running SQL scripts

E-mail Print

Creating a SQL Script

There are several methods that can be used to run SQL scripts.  Which method is best, depends on the purpose of the script.

If the script is meant to be run one time, or on rare occasion with no set pattern, then running the script directly makes the most sense.  It can be run through the SQL Management Studio Express, or from the Windows command line, if OSQL is installed.

The easiest way to write your script, is using the SQL Management Studio.  Open Management Studio, and log into the database server.  Expand the databases, and right click on the database that you want to run the script on, and select New Query.  The right hand side will open a new window for you to write your query.

When writing queries in the Management Studio, as you type, table names and field names will show in a drop down list, based on what you are typing.  You can select from these, and save yourself some keystrokes.

Once you have finished your script, and tested it (by using the Execute button in Management Studio Toolbar), save it with a ".sql" extension.  By using this extension, if you double click on the script in Windows, it will automatically launch the SQL Management Studio, and load your script.  Once you log in to the database server, your script is then ready to be run, by hitting the Execute button.

This is simpler than using OSQL to run your scripts.  However, there are some advantages to using OSQL, which I will look at in my next blog.

If you are not current on the SQL language syntax, try the w3schools.com site: http://www.w3schools.com/sql/default.asp  

NOTE:  If you are creating SQL scripts you should be the Administrator or creating scripts with the Administrator approval.  Your SQL Database Server (Engine) should be password protected.  You will need this information to get logged in.

We write SQL scripts for our customers almost on a daily basis.  If you need help contact us at CCS Retail Systems.

 



Last Updated on Wednesday, 18 January 2012 19:19  
Privacy Policy | CCS Sales | CCS Support | CCS Training | CCS Administration | Author Help | CCS Webmaster | Site Map

© Copyright 2012, CCS Retail Systems, Inc. All Rights Reserved.

Customer Connect Marketing

Customer Connect Video and Details The Only Email Marketing Tool Built for Retailers

Customer Connect (CC) is Loaded With The Features And Functionality Needed For RetailersFully integrated with CounterPoint V7 and CounterPoint SQL, Customer Connect gives you the data needed to effectively connect with your customers, drive sales and increase customer loyalty.

New CustomerConnect Features!

Subscribe to CCS Specials Newsletter.  To unsubscribe use the link at the bottom of a newsletter. CCS Newsletter Sign-up

Visit CCS CustomerConnect eNews Archive CCS CustomerConnect eNews Archive

Quick Menu

 

 

 

 

Recovery Act Tax Deductions

"American Recovery and Reinvestment Act has officially extended the Section 179 Tax Deduction increases for the 2011 Tax Year"

Section 179 can be extremely profitable to you, so it is to your benefit to learn as much as possible. To begin, you probably have a lot of questions regarding Section 179. Follow the links below to get the details on this opportunity:  more ...

 Radiant CounterPoint POS

Radiant Introduces NEW CounterPoint POS Releases

This New 8.3.9 Release of CounterPoint was developed to give retailers New Features and Functions that increase profitability, and ensure a rapid return on investment.

Contact your CCS Sales Consultant to discuss all the new features and functions included.  Ask how they will Keep the Checkouts moving, the Inventory Optimized, and the Back-office Managed. Here are just a few of CounterPoint 8.3.9’s enhancements:  

♦ Registry/Wish List ♦ Message Center
♦ Margin Driven Pricing ♦ Miscellaneous Kits
♦ Tag-Along Kits ♦ Scrap Items
♦ Inactive Items ♦ Discount Overrides
♦ Item Zoom ♦ Forecasted Advices
♦ Enhanced Advices ♦ Work Center
♦ PCI DSS Passwords ♦ Enhanced CC Security

CPSQL 8.4.0 is on its way. Check out What's Coming with the link below!

CPSQL 8.4.0  | CP V7.5.19  | Product News | POS Stations

Why Choose CPSQL?

We have selected two dozen Recent New Retail CounterPoint SQL POS Customers to Profile for you. 

We suspect that you may have Needs Similar to theirs.  See Why these Retailers chose CPSQL and What they Found to be the Benefits.   more ...

Is Your System Healthy?

Great Deals!  New and Refurbished Systems.  Netbooks, Notebooks, Desktops, Servers, Storage Systems, Retail Devices.  Configure your own Systems for us to install.  more ...

Topic Cloud

GeoIP Location

Bookmark Us

Add to: JBookmarks Add to: Facebook Add to: Buzka Add to: Windows Live Add to: Ximmy Add to: Bookmarks.cc Add to: Linkarena Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: Jumptags Add to: Upchuckr Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Blogmarks Add to: Diigo Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Smarking Add to: Spurl Add to: Google Add to: Blinklist Information

Spam Free



Translate Page




Dave's Blog Newsfeed Subscribe to FeedBurner

Products and Services

 
Product Details
 
 
 

CCS Customer Comments

Customer Referrals

CCS offers rewards for each new, verified Prospect referral. We encourage you to think of the value that CounterPoint has added to your business and share that with others who will also benefit.

Submit a ReferralSubmitReferral

Get Involved In Our Site!

Become an Author.We encourage our customers, suppliers, and friends to participate in our site.  See the Visitor Services pages for details.