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

'CommandType' is not declared. It may be inaccessible due to its protection...

In an ASP.NET web page I am trying to use a set of variables to create a new row in a database using just SQL. The variables are:    Dim strDescription as String    Dim decUnitCost, decRetailPrice,...

View Article


Replication not using stated account

I'm creating a snapshot replication to push replication to another machine.  I've set up the Publication and the Subscription jobs using the wizard.  For now, I've set it up to run under the SQL Server...

View Article


Returning multiple result sets from a procedure

Hello all,Can we return more than one result set from a procedure?Thanks and Regards, G Srikar Reddy, Junior SQL Server DBA, Miracle Software systems, Inc.

View Article

Host name

Hello, <o:p></o:p>Recently we had to rebuild a sql server and we followed below steps. we replaced server 1 with server 2<o:p></o:p>1. Server 1 is live. Meaning DB's are...

View Article

troubeshoot full transaction log

micrsoft scom alert:The transaction log for database 'ABC' is full. To find out why space in the log cannot be reused, see the log_reuse_wait_desc column in sys.databasesHow to troubleshoot?Thanks

View Article


exec sp_db_increased_partitions

what doesexec sp_db_increased_partitions do?what does exec sp_db_increased_partitions '<SID>' do?

View Article

how to add the scalar varibles and store the result in another scalar variable

declare @Maxamount int,        @month varchar,        @Duration int,        @iReturn int           set     @month        = (select DATEPART(MM,start_date) from TC_Project_Referal where id_tc_projuser...

View Article

How to improve the performance of Database

Hi all,  Reporting Database backup from OLTP database daily morning,from reporting DB users are spooling the report.But Reporting DB is always slow (Death).User can't spool any reports.Here details:-DB...

View Article


Password expiry option for sql server logins

Hi Experts,Can we set 'password expiry option' at a time for sqlserver logins as in sybase.ThanksShashikala

View Article


Indexing a table

I've created a new table and added data to it. Now I want to index a given column. Will simply creating and saving the index index the column or do I need to do something else to create the actual...

View Article

Varchar(Max) field cutting off data after 8000 characters SQL Server 2008

Hi,We have a scenario on which we are preparing the SQL query dynamically by string concatenat and then at the end EXECUTING the query using EXECUTE statement but observed that the VARCHAR(MAX) data...

View Article

what is database re indexing

hiwhat  is database re indexing what is the concept of it, adil

View Article

SQL log file

Dear all,I have a SQL 2008 R2 installed on a SCCM server and the Report Server database log file has grown massively (almost 400GB). However I have attempted to shrink it via the SQL server management...

View Article


what is database fragmentation

HiWhat is database fragmentation and how its happendis it relates to database insertion ,update,delete operationsadil

View Article

troubleshoot slow backup

I backup one big database over network: Database A on server B and Backup destination is share drive on server C.Database A is very big.Backup is very slow and take very long time...How to...

View Article


Problem with Attaching database because of its version

Hello everyone,I have created a database in sql server 2008 yesterday and stored some data into it.And then i have detached that database.Today when i tried to attach the same database into sql server...

View Article

BACKUP failed to complete the command BACKUP DATABASE. Check the backup...

Hi,We have a back up that is failing.The error is "BACKUP failed to complete the command BACKUP DATABASE RPS. Check the backup application log for detailed messages.".As I understand it the backup...

View Article


UPDATE, DELETE & SEARCH METHODS

please help me with an examples of update, search &or delete methods.im using C# and sql server. i want to update/delete/search information from the database using a GUIi want methods to do all...

View Article

Fetching the latest record

Hi,I have testcycl table which holds the results of tests for each testid and the status with execution date and time as below:TESTCYCLTESTID    STATUS  TEST_EXEC_DATE...

View Article

How can I use SQL Server to practice building a database to practice SQL...

I took Oracle SQL 11g last semester but didn't get a chance to practice like I wanted to. However, I was told that if I downloaded Microsoft Server SQL I would be able to practice SQL commands and...

View Article
Browsing all 4729 articles
Browse latest View live


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