DataSource Controls :: Backup And Upload Sqlserver Data In .net?

Jun 14, 2010

i am trying but i am unable to do this one.

View 2 Replies


Similar Messages:

DataSource Controls :: Getting Error / The Backup Set Holds A Backup Of A Database Other Than The Existing 'elib' Database

Jun 16, 2010

when I make restore to backup database display this error :

The backup set holds a backup of a database other than the existing 'elib' database. (Microsoft.SqlServer.Smo)

how I can solve this error ?

View 1 Replies

DataSource Controls :: Group By With No Repeated Data In Sqlserver 2005?

Jan 28, 2010

The below query produce the below output.

[code]...

select r.Name,c.Name,s.Name,(select count(p1.id)from profiles p1 where r.id=p1.religion and c.id=p1.caste and s.id=p1.subcaste and p1.Gender=1)as Male,(select count(p1.id)from profiles p1 where r.id=p1.religion and c.id=p1.caste and s.id=p1.subcaste and p1.Gender=2)as Female from religion r,profiles p,caste c,subcaste s where r.id=p.religion and c.id=p.caste and s.id=p.subcaste group by r.Name,c.Name,s.Name,r.id,c.id,s.id

View 3 Replies

DataSource Controls :: How To Read Data Values Of A Table Using Loop In Sqlserver

Feb 10, 2010

I am using vs2008, Sqlserver2008.

my table: PostGL having data like thi

AutoIdx TxDate Id AccountLink Description Debit Credit
3 2010-01-22 JL 2 bcb 0 35.09
5 2010-01-28 JL 2 g 3.51 0

select AutoIdx,TxDate,Id,AccountLink,Description,Debit,Credit,(Debit-Credit) as Actual from PostGL where Id='JL' and AccountLink=2

AutoIdx TxDate Id AccountLink Description Debit Credit Actual
3 2010-01-22 JL 2 bcb 0 35.09 -35.09
5 2010-01-28 JL 2 g 3.51 0 3.51

I am trying in view like this

declare @cnt int
declare @i int
set @budget=20
set @cnt= (select COUNT(*) from PostGL where AccountLink=2 )
set @i=1
WHILE (@i<=@cnt )
BEGIN
set @tdebit=??

END

I am taking count the no of rows having AccountLink=2
I need to read all debit,credit and add all debit into totaldebit,all credit into totalcredit independently from table.
then i need to show the totaldiff as Actual.
i need ....totaldiff=totaldebit-totalcredit

View 3 Replies

DataSource Controls :: Copy The Data Of The Excel Sheet To The Sqlserver Table?

Feb 18, 2010

i am Using sql server 2005. i want to copy the data of the excel file to the table.

i wrote the query like :

INSERT INTO test(empId,empName,empMailId,empContactNo)
SELECT *
FROM OPENROWSET('Microsoft.Jet.OLEDB.4.0',
'Excel 8.0;Database=C: estExcel.xls',
'SELECT * FROM [Sheet1$]')

got the following error :

SQL Server blocked access to STATEMENT 'OpenRowset/OpenDatasource' of component 'Ad Hoc Distributed Queries' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'Ad Hoc Distributed Queries' by using sp_configure. For more information about enabling 'Ad Hoc Distributed Queries', see "Surface Area Configuration" in SQL Server Books Online.

then did this

sp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Ad Hoc Distributed Queries', 1;
GO
RECONFIGURE;
GO

again am trying the same above query ,now am getting the following error:

Msg 7399, Level 16, State 1, Line 1 The OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)" reported an error. The provider did not give any information about the error. Msg 7303, Level 16, State 1, Line 1 Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".

i want to copy the data of the excel sheet to the table.

View 2 Replies

DataSource Controls :: Exclude Xml Data Type Columns From Select * Statement In Sqlserver?

Jun 16, 2010

I want use select * from sample (tablename) ,which returns only those columns from sample table which does not have xml data type.

note : sample table contains some columns which have xml data type .

View 6 Replies

DataSource Controls :: How To Backup Db In C#

May 23, 2010

my db in sql server 2005. in my program i want to do a buttion to backup the db. how can i do that?

View 8 Replies

DataSource Controls :: Take Backup Of Database?

May 20, 2010

How to take backup of database of requied database from asp.net to our physical path?

View 11 Replies

DataSource Controls :: Taking Backup Frm Vs2005

Jan 14, 2010

i have sql2000 i need to take back up

but i am not getting anything in the folder

my stored procedure has

[code]....

View 6 Replies

DataSource Controls :: Sql Backup And Restore Command

Jan 4, 2010

i m using these command for backup and restore sql database

BACKUP DATABASE [db_report] TO
DISK =N'db_report.bak'
WITH NOFORMAT, NOINIT, NAME = N'Report-Full Database Backup',
SKIP, NOREWIND, NOUNLOAD, STATS = 10
RESTORE DATABASE [db_report]
FROM DISK = N'db_report.bak'
WITH FILE = 1,
MOVE N'db_report' TO N'C:db_report.mdf',
MOVE N'db_report' TO N'C:db_report.ldf',
NOUNLOAD, STATS = 10

but i want to set backup drive name with today date and time yani my i will set drive D:db_report010320100910am if u will see theres is db_reportMonth(01) Day(03) Year(2010) Time(09:10am) and when i want to restore then ask me which one u want to get restore

View 2 Replies

DataSource Controls :: Restoring The Backup Of One Database To Another?

Jan 24, 2010

I have two databases- database1 and database2. I have taken the full backup of database1 and want to restore it to the database2. When I do it in the Sql server Management Studio, I get this error:

The backup set holds a backup of a database other than the existing 'database2' database.

View 4 Replies

DataSource Controls :: Backup SQL Server Database?

Feb 23, 2010

how to Take External Database Backup file into Local HardDrive.

View 4 Replies

DataSource Controls :: Backup / Restore Database Control / UI For VB

Feb 17, 2010

how can I achieve this using the SQLdatasource control? I'm using the VB language. What controls/commands should I use to have a backup and restore function on my website?

View 2 Replies

DataSource Controls :: How To Create A DB Backup In A Specific Folder

Jun 11, 2010

I'm using SQL sever 2005 and 2008 expressHow Can I create a DB backup in a specific folder??I use Management Studio but I'd like to automatically create backup without use tools

View 5 Replies

DataSource Controls :: How To Backup And Restore Ms Sql Database With Button Click

Jul 6, 2010

I have one database in local server...

What i need is i need to get a backup of my database with one click of asp.net button click with the names as of todaysdatewithtime.bak format..

as well i need to restore using asp.net on button click...

View 13 Replies

DataSource Controls :: Backup And Restore Database - Getting Format Errors

Jul 11, 2010

I have an SQL 2008 R2 database on an X86 machine that I have backed up a database from. Now I want to restore it to an SQL 2008 R2 instance on an X64 machine and keep gettting format errors (attributed to restoring a higher version of database to a lower database instance ie 2005 to 2008). On inspecting the databases I find the X86 is version 10 and the X64 is version 9 (which is supposed to be the 2005 database)...are there different versions of the same DB for different software platforms?

View 3 Replies

DataSource Controls :: Backup And Restore Sql2000 Database To Any System Or Server

Feb 20, 2010

1. i have created aa database named "qraghul" which contains two tables. i want this database to backup from my system and restore it to the host server or any other system. how i can do it.

2. suppoose if i backup and restore it to any system or server. whether i have to change the connection string in my application eg Data Source=QUANO-462F6EB27;Initial Catalog=qraghul;Integrated Security=True
bcoz my server name is QUANO-462F6EB27 whether i restore it to any system. i need to change the server name?

View 4 Replies

DataSource Controls :: Connect To The SqlServer In Pc1 From Pc2?

Apr 11, 2010

we have local net in our company.(we dont have win server.)

now i want to know how i can connect to the sqlServer in pc1 from pc2?

View 1 Replies

DataSource Controls :: Code Behind To Disconnect Temporarily All DB Connections To Backup/copy Database?

Mar 30, 2010

SQL Server Express 2005 MS Visual Studio 2005 Using ASP.NET with VB code behind. Requirements: Click a button on an ASPX page to disconnect temporarily all DB connections when not in use to allow a script to backup/copy the database to a safe backup location. When a user access the db afterwords, the DB connections will be re-established.

If this is imposible, recommend an alternative. Note: I am working with what I have been given and authorized to use.

View 3 Replies

DataSource Controls :: Unable To Connect With SQLserver ?

May 14, 2010

i have been trying to connect to SQLserver from ASP.net web developer in an n-tier architecture.But it shows this error in conncetion


A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

View 3 Replies

DataSource Controls :: Re - Auto Generate ID'S In Sqlserver?

Jun 27, 2010

I really need to create ID like this. But I don't know how use this Procedure .If you don't mind can you explain to me step by step how to use to procedure for create auto ID in database. (Should I call to this Procedure from somewhere else, like webpage button or something)

View 4 Replies

DataSource Controls :: How To Connect To Sqlserver (cubes) Using C#

May 8, 2010

i am new to this cubes concept in sqlserver . i need to connect to cubes and and query and get an result and display that result in grid view

how to connect to an cube, articles on it, code any thing

View 1 Replies

DataSource Controls :: Saving Hebrew In Sqlserver?

Apr 28, 2010

I have a problem with saving hebrew into sqlserver.I've done it before in another computer but did not have problem.Now the hebrew is saved as '???'.About the field collation, it is latin1_general_cp1_ci_as in another DB I have in another computeranf also in the current field in the current DB.I guess it not the collation.Ialso tried to change the text field to varchar, but it still saves '???'.

View 9 Replies

Web Forms :: Bulk Upload Of Files In Sqlserver

Mar 28, 2011

i am having a folder which contains 100 files and each file contain the columns separated by the ' |(pipeline)' and similarly that file contain data also.so i need to bulk upload this folder to the ms sqlserver2005 so that automatically these tables with data added in the database so how to do that one? tell me if any store procedure or the any asp.net program is available for that.

View 1 Replies

DataSource Controls :: Import Dynamic Excel To Sqlserver

Jun 28, 2010

I try to import Excel files to sqlserver problem is that the number and the titles of columns are dynamic.How can i do that by code?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved