Quantcast
Channel: Forum Getting started with SQL Server
Browsing all 7129 articles
Browse latest View live

How can I test a method which aggregates data from a database?

I'm developing the web Java application and come across the following issue:I'm using jUnit 4.5.Suppose that I have a method which aggregates data from a database for the rendering their to a markup....

View Article


When should I implement authentication in a database?

I'm currently embarking on a MongoDB project (a simple user login system), and I notice that there is an option for authentication. Here is the server string, with the userinfo shown as optional...

View Article


Combine union with distinct

Situation: I need distinct results from two tables, that both have duplicates. I would like to know if I should combine UNION and DISTINCT.Example 1 - Only use distinctSELECT DistinctValueFROM...

View Article

Should I rebuild my read only database every time I launch my server?

I'm getting into web development, and I'm trying to get a grip on databases.In an app I want to make, there is a read only database that will be filled up with a large amount of data, which will be the...

View Article

Case Statement

I am trying to write a case statement  essentially along this linecase when column a<> column b then 'incorrect'else 'correct'but it doesnot seem to work, can you not do column comparison in a...

View Article


missing functions

I'm working through the 70-461 training kit at home and for some reason my install of SSMS doesn't have the functions 'CONCAT() or FORMAT() installed.  There may be others but I'm only on page 47.  My...

View Article

Database design with performance issue and use of views

I am designing database for a school system. I am having to create a lot of tables and a lot of link tables to maintain a structure in the system. I am trying to maintain foreign integrity and trying...

View Article

Whether to store all numbers or just their ranges in database for this...

I'm developing a (PHP MySQL) Web App which will sell dynamically generated real time cell phone numbers for cellular companies. A company will ask for, say, a thousand numbers and this app will check...

View Article


Prepared statement alternatives for this middle-man program?

I have an program that is using a prepared statement to connect and write to a database working nicely, and now need to create a middle-man program to insert between this program and the database....

View Article


How to ensure the success of processes after a deadlock exception occurs?

No matter the programming language is and whatever the database is, the concept should be the same: I have 2 threads, each locking some database entities and inserting new data in database. Let's...

View Article

what data storage method should I use?

I am currently writing a program and among other things need to store data. The program listens to two computers talking to each other in a known protocol (the program know what protocol it is,the...

View Article

Need a guideline to install the appropriate version of SQL Server on Windows 8

Hi Everybody, I just started to learn database programming with C#, but i am facing problems over problems. Actually I'm running Windows 8 Pro, x64 Architecture. I tried installing SQL Server 2008...

View Article

Select Statement

Given below are the queries with their output.Please help to know why the output is like this:query                outputselect $        1select count(*)  1select sum(1+2*3) 7selec max(1+2*3)  7

View Article


TempDB - 70GB (70GB free space) but cant shrink DB, restarted SQL - Service -...

Hello Guys i've got a little problem here... because of some year end jobs the tempdb has grown up to 70GB. But from the 70GB only 4MB are used... i tried to shrink it down to 5gb (was in the beginning...

View Article

How fo find installed features of 2012 SSMS

I previously installed 2012 Management Studio, it is working fine. How do I find out the installed features? I need to install SSMS on another PC but can't figure out which features to install.Thanks.

View Article


Creating New db(with new name) with the old db backup sql server 2008

Friends..version: Sql Server 2008I have a database in a name college1 (more than 200 tables and view etc...)i want to create a new db with all the structures including the data of the above db college1...

View Article

Maintaining Tables & Indexes in seperate file groups

Hi All,I know tables with indexes or without indexes can be moved from default primary group to secondary or customized file group but Is it possible to keep indexes in one file group and the tables in...

View Article


Determine what objects a user account is linked to

We had a recent staff change and I need to scan the databases to determine what jobs, ssrs and ssis objects are linked to a specific user account so I can point them to a service account instead before...

View Article

To find past blocking

Hi Experts,I am in need to find out the previous blocking sessions which occurred over the weekend when Database Maintenance Weekly Index Rebuild and Database Maintenance Weekly Integrity Check runs, I...

View Article

copying or backup of a database

Hello all,This may be a very simple question to answer. I am looking at getting a (copy) of our live database off our live server (Sql management studio 2005) and moving into a test server for testing....

View Article
Browsing all 7129 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>