Sql Server 2008 with version control
How to use version control like TFS with sql server 2008
Hi Shridhar
Check this blog post, need to check the last reply in this blog. It tells how to add the Data Tool to TFS.
http://www.sqlservercentral.com/Forums/Topic954113-23-1.aspx
Regards Harsh
Similar Messages
-
How to export data with column headers in sql server 2008 with bcp command?
Hi all,
I want know "how to export data with column headers in sql server 2008 with bcp command", I know how to import data with import and export wizard. when i
am trying to import data with bcp command data has been copied but column names are not came.
I am using the below query:-
EXEC master..xp_cmdshell
'BCP "SELECT * FROM [tempdb].[dbo].[VBAS_ErrorLog] " QUERYOUT "D:\Temp\SQLServer.log" -c -t , -T -S SERVER-A'
Thanks,
SAAD.Hi All,
I have done as per your suggestion but here i have face the below problem, in print statment it give correct query, in EXEC ( EXEC master..xp_cmdshell @BCPCMD) it was displayed error message like below
DECLARE @BCPCMD
nvarchar(4000)
DECLARE @BCPCMD1
nvarchar(4000)
DECLARE @BCPCMD2
nvarchar(4000)
DECLARE @SQLEXPRESS
varchar(50)
DECLARE @filepath
nvarchar(150),@SQLServer
varchar(50)
SET @filepath
= N'"D:\Temp\LDH_SQLErrorlog_'+CAST(YEAR(GETDATE())
as varchar(4))
+RIGHT('00'+CAST(MONTH(GETDATE())
as varchar(2)),2)
+RIGHT('00'+CAST(DAY(GETDATE())
as varchar(2)),2)+'.log" '
Set @SQLServer
=(SELECT
@@SERVERNAME)
SELECT @BCPCMD1
= '''BCP "SELECT
* FROM [tempdb].[dbo].[wErrorLog] " QUERYOUT '
SELECT @BCPCMD2
= '-c -t , -T -S '
+ @SQLServer +
SET @BCPCMD
= @BCPCMD1+ @filepath
+ @BCPCMD2
Print @BCPCMD
-- Print out below
'BCP "SELECT
* FROM [tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername'
EXEC
master..xp_cmdshell
@BCPCMD
''BCP' is not recognized as an internal or external command,
operable program or batch file.
NULL
if i copy the print ourt put like below and excecute the CMD it was working fine, could you please suggest me what is the problem in above query.
EXEC
master..xp_cmdshell
'BCP "SELECT * FROM
[tempdb].[dbo].[wErrorLog] " QUERYOUT "D:\Temp\LDH_SQLErrorlog_20130313.log" -c -t , -T -S servername '
Thanks, SAAD. -
Temporarily disable Digital Signature Checks to Install MS SQL Server 2008 with no Internet Access
I am attempting to install a licensed copy of MS SQL Server 2008 in a Private Enclave that does NOT have Internet access on a Win2008 R2 SP1 server (that is VM - thus I can't reboot and press F8 to select "Disable Driver Signature Enforcement"
). The installation fails with an error of the vc_red.cab file being found either corrupt or a bad digital signature. The file is good, but the signature has an expiration of 2011. I understand that a DOTNET SDK v1.1 program called setreg.exe
will enable disabling the digital signature check, but I am not permitted to use that program.
I might be permitted to use the "Signtool.exe" utility, but it is not clear what command sequences are necessary to disable and then re-enable the Digital Signature checks.
I saw a thread that recommended using the command:
bcdedit.exe /set nointegritychecks ON
However, the comments indicated that this might not have worked.
Are there Registry settings I can use with regedit to make the necessary changes to be able to install the application? I anticipate running into this problem with other software when I do not have Internet connectivity. I already tried
downloading the Microsoft CRL files; updated the lists on the Server; and rebooted. This did not solve my problem.Hi,
As far as I know, it is not recommended to disable digital signature check.
Since we are not familair with installing MS SQL server, please also refer to SQL forums below to see if experts there have more insights regarding the matter.
https://social.technet.microsoft.com/Forums/sqlserver/en-US/home
Best Regards,
Amy
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] -
SSPI handshake error in SQL Server 2008 with SharePoint 2010
Hi,
I am having some trouble with my SharePoint database server this time. SharePoint Server 2010 is running on Windows Server 2008 R2 and SQL Server 2008 is running on Windows Server 2008 R2 as SharePoint database also. SharePoint users are authenticated through
Active Directory. I am getting the following error almost everyday in SQL Server-
SSPI handshake failed with error code 0x8009030c, state 14 while establishing a connection with integrated security; the connection has been closed. Reason: AcceptSecurityContext failed. The Windows error code indicates the cause of failure.
[CLIENT: (Server IP Address)].
Could somebody help me to resolve this error?
Thanks in advance.Hi pointtoshare,
No, a Service Principal Name (SPN) must be registered with Active Directory to use Kerberos authentication with SQL Server and not need to use NTLM authentication.
Could you run the following query on your SharePoint Server and check the value of the auth_scheme column?
SELECT auth_scheme FROM sys.dm_exec_connections WHERE session_id = @@spid ;
Edit:The
query above should run on the SharePoint machine with using SQL Management Studio.
Best Regards,
Eric
Eric Tao
TechNet Community Support -
I have installed reporting services with SharePoint Integration Mode, however, whenever I access the report, below error occurs:
Report Server has encountered a SharePoint error. (rsSharePointError)
Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)
Checking through the Log Files, there is more detailed error message, but not sure what cause the error:
library!ReportServer_0-2!4064!11/01/2010-15:00:39:: Call to GetPermissionsAction(http://[servername]/sites/Reporting/Reports/TestReport.rdl).
library!ReportServer_0-2!4170!11/01/2010-15:00:39:: Call to ListParentsAction(http://[servername]/sites/Reporting/Reports/TestReport.rdl).
library!ReportServer_0-2!4170!11/01/2010-15:00:40:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error. ---> Microsoft.SharePoint.SPException: Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) --->
System.Runtime.InteropServices.COMException (0x80020009): Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
--- End of inner exception stack trace ---
at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
at Microsoft.SharePoint.SPFile.GetFileContent(SPOpenBinaryOptions openOptions)
at Microsoft.SharePoint.SPFile.OpenBinary(SPOpenBinaryOptions openOptions)
at Microsoft.SharePoint.SPFile.OpenBinary()
at Microsoft.ReportingServices.SharePoint.Server.SharePointServiceHelper.SyncToRSCatalog(String path, Boolean createOnly)
--- End of inner exception stack trace ---
library!ReportServer_0-2!4064!11/01/2010-15:00:40:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error., ;
Info: Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error. ---> Microsoft.SharePoint.SPException: Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION)) --->
System.Runtime.InteropServices.COMException (0x80020009): Exception occurred. (Exception from HRESULT: 0x80020009 (DISP_E_EXCEPTION))
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
--- End of inner exception stack trace ---
at Microsoft.SharePoint.Library.SPRequest.GetFileAsByteArray(String bstrUrl, String bstrWebRelativeUrl, Boolean bHonorLevel, Byte iLevel, OpenBinaryFlags grfob)
at Microsoft.SharePoint.SPFile.GetFileContent(SPOpenBinaryOptions openOptions)
at Microsoft.SharePoint.SPFile.OpenBinary(SPOpenBinaryOptions openOptions)
at Microsoft.SharePoint.SPFile.OpenBinary()
at Microsoft.ReportingServices.SharePoint.Server.SharePointServiceHelper.SyncToRSCatalog(String path, Boolean createOnly)
--- End of inner exception stack trace ---
Any idea on how to resolve the issue?Hi Jin Chen,
Thank you for your response. I have disabled all the Symantec End Point Protection Service, but problem persists..
Further, I have checked through the ULS Log in SharePoint, there is more error reported there:
11/03/2010 15:19:48.44 ReportingServicesService.exe (0x3510)
0x4064
Windows SharePoint Services Database
6f8g Unexpected
Unexpected query execution failure, error code 282. Additional error information from SQL Server is included below. "The 'proc_GetTpWebMetaDataAndListMetaData' procedure attempted to return a status of NULL, which is not allowed. A status of 0 will be
returned instead." Query text (if available): "{?=call proc_GetTpWebMetaDataAndListMetaData(?,'F77D6A37-F8D2-492C-911C-923C8A135DEB',?,NULL,1,?,?,6187)}"
11/03/2010 15:19:51.46 ReportingServicesService.exe (0x3510)
0x4064
Windows SharePoint Services General
8e2s Medium
Unknown SPRequest error occurred. More information: 0x80020009
11/03/2010 15:19:51.69 ReportingServicesService.exe (0x3510)
0x1EEC
Windows SharePoint Services General
8e2s Medium
Unknown SPRequest error occurred. More information: 0x80020009
Do you have any idea based on the error above? -
How to use update trigger in sql server 2008 with specific column
Hello friends currently my trigger updates on table update, and I need to change this to only fire when specific column changes.
/****** Object: Table [dbo].[User_Detail] ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[User_Detail](
[sno] [int] IDENTITY(1,1) NOT NULL,
[userid] [nvarchar](50) NULL,
[name] [nvarchar](max) NULL,
[jointype] [nvarchar](50) NULL,
[joinside] [nvarchar](50) NULL,
[lleg] [nvarchar](50) NULL,
[rleg] [nvarchar](50) NULL,
[ljoining] [int] NULL,
[rjoining] [int] NULL,
[pair] [int] NULL
) ON [PRIMARY]
GO
/****** Object: Table [dbo].[User_Detail] table data ******/
SET IDENTITY_INSERT [dbo].[User_Detail] ON
INSERT [dbo].[User_Detail] values (1, N'LDS', N'LDS Rajput', N'free', N'Left', N'jyoti123', N'SUNIL', 6, 4, 4)
INSERT [dbo].[User_Detail] VALUES (2, N'jyoti123', N'jyoti rajput', N'free', N'Left', N'mhesh123', N'priya123', 3, 2, 2)
SET IDENTITY_INSERT [dbo].[User_Detail] OFF
/****** Object: Table [dbo].[User_Detail] trigger ******/
CREATE TRIGGER triggAfterUpdate ON User_Detail
FOR UPDATE
AS
declare @userid nvarchar(50);
declare @pair varchar(100);
select @userid=i.userid from inserted i;
select @pair=i.pair from inserted i;
SET NOCOUNT ON
if update(pair)
begin
insert into Complete_Pairs(userid,pair)
values(@userid,1);
end
GO
/****** Object: Table [dbo].[Complete_Pairs] Script Date: 05/22/2014 21:20:35 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[Complete_Pairs](
[Sno] [int] IDENTITY(1,1) NOT NULL,
[userid] [nvarchar](50) NULL,
[pair] [int] NULL
) ON [PRIMARY]
GO
my query is TRIGGER triggAfterUpdate is fired only when pair column in User_Details table is update only and when we update other column like ljoin or rjoin then my trigger is not fired
please any one can suggest us how it can done or provide solution
Jitendra Kumar Sr. Software Developer at Ruvixo Technologies 7895253402>select @userid=i.userid
frominserted i;
select
@pair=i.pair
frominserted i;
The code above assumes a single row UPDATE.
You have to setup the trigger for set processing like when 100 rows are updated in a single statement.
UPDATE trigger example: http://www.sqlusa.com/bestpractices2005/timestamptrigger/
Kalman Toth Database & OLAP Architect
SQL Server 2014 Design & Programming
New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012 -
Connet sql server 2008 to java with sqljdbc
I'm trying to connect sql server 2008 with java and I tired to read from microsft documentation and other internet sites to do it and always get an mistake. I used sqljdb, sqljdb4, sqljdb4.1 and any
the most simple codec is:
public static void main(String[] args) throws SQLException{
try {
String connectionUrl = "jdbc:sqlserver://localhost.\\SQLEXPRESS:1433;" +
"databaseName=hackeadorazodb;user=hacker;password=;integratedSecurity=true";
Connection con = DriverManager.getConnection(connectionUrl);
if(con != null){
System.out.println("exito");
} catch (Exception e) {
System.out.println("error: "+e.toString());
Hi hackeadorazo,
Could you please post the full error message?
From your description, it seems that you are connecting to a named SQL Server instance locally.
Firstly, please make sure the following things.
1. SQL Server is running in SQL Server Configuration Manager (SSCM)
2. TCP/IP is enabled in SSCM.
3. SQL Server is listening on port 1433. Right-click "TCP/IP" in SSCM > SQL Server Network Configuration > Protocols for SQLEXPRESS, then choose "Properties" and click "IP Addresses" tab, you
can check the port from “IPAll/TCP Port”.
Secondly, if you use current Windows user account (Windows authentication) to log on SQL Server, the
connection URL should be as follows.
String connectionUrl = "jdbc:sqlserver://localhost\\SQLEXPRESS:1433;" + "databaseName=hackeadorazodb;integratedSecurity=true";
If you use a SQL Server account (SQL Server authentication) to
log on SQL Server. You need to specify username and password in the
connection URL as follows. In addition, please make sure that SQL Server is configured as “SQL Server and Windows Authentication Mode “in SQL Server Management Studio (SSMS) and the login ‘hacker’ exists in SQL Server Instance>Security>Login.
String connectionUrl = "jdbc:sqlserver://localhost\\SQLEXPRESS:1433;" + "databaseName=hackeadorazodb;user=hacker;password=<Password>";
For more details, you can review the following blogs.
http://blogs.msdn.com/b/brian_swan/archive/2011/03/02/getting-started-with-the-sql-server-jdbc-driver.aspx
http://www.codejava.net/java-se/jdbc/connect-to-microsoft-sql-server-via-jdbc
Thanks,
Lydia Zhang -
"SQL Server 2008 Reporting Services does not support map report items"
Hi,
I am trying some new feature that are introduced in SQL Server 2008 R2 version. While I try to use "Map" control within it, it threw the following error:-
"Error 1 The map, Map1, was removed from the report. SQL Server 2008 Reporting Services does not support map report items. "
-Also, similar kind of error I am getting for "Indicator" control.Hi Tej,
I think you get this error message when you are deploying a report to report server using BIDS, correct? If not, please provide more details on your scenario :-)
If I guessed correctly, then this message is a result of trying to deploy a map report (a SSRS 2008 R2 feature) to a non-R2 2008 report server. When deploying a report of RDL2010 format to a non-R2 report server, BIDS will downgrade the file to RDL2008 format, so that the non-R2 report server can process it. Any report elements using features not supported in RDL2008 will be dropped during this downgrade process.
BIDS gets the server version from a report project property called TargetServerVersion:
http://technet.microsoft.com/en-us/library/ee635898(SQL.105).aspx
If your report server is indeed the 2008 R2 version, then the TargetServerVersion property should be set to "SQL Server 2008 R2 Reporting Services." The project property page also has a "Auto Detect..." option if you are uncertain about the version of your report server.
Hope this helps!
Cheers,
LawrenceThis posting is provided "AS IS" with no warranties, and confers no rights. -
SQL Server 2008/2012 Express Connection Problem
Hello,
since a couple of days I'm working on a problem with the SQL Server Express (32-Bit as well as 64Bit).
I installed a new SQL Server 2008 with an instance named SQL2012 and the Management Studio 2008 R2 on the same machine. I easily am abled to connect to the Server using the Management Studio with several Server Name settings (localhost, IP, (local), .\SQL2012).
Now I have a self-written programm (C#) wich should connect to the Server, but it does not work. It is definitely not a problem of the programm code because the same programm is abled to connect to a SQL Server 2008 Enterprise Edition. Similar Problem with
the 2012 Express Version (2012 Enterprise not tested).
The connection string I use and wich is working with connecting on the Enterprise Edition is: Server=Servername\Instance;Database=DatabaseName;User Id=user;Password=password;
Anybody any solution why the Express-Version refuses to connect?
(Sorry if I have made several failures in my text, English is not my native language)It Occurs when I try to ping.Send the Server to see if he is active. If I skip this step and try to connect directly to the server (con.Open()) I get the exception:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The
server was not found or it can not be accessed. Verify that the instance name is correct and that SQL Server allows remote connections. (provider: Named Pipes Provider, error: 40 - Connection with the SQL Server couldn't be opened) -
Installing Full-Text Search in SQL Server 2008 Standard
Hello,
We have a SQL Server 2008 Standard server, and I need to install full-text search in order to take advantage of some features with Autodesk Vault. I believe that I understand the procedure to do so, but, does the installation of the setup tools
and full-text search component cause any interruption to the database instances (or require a reboot)?
ThanksHi Indiana Grumpycooter,
Full text search feature is supported by the SQL Server 2008 standard version, so you can install this feature in
installation page of the SQL Server Installation Wizard. There is an similar example about adding SQL Full-Text Search to an existing SQL Server, you can review the following steps.http://www.techrepublic.com/blog/data-center/adding-sql-full-text-search-to-an-existing-sql-server/
In addition, you can also install this feature via command line as follows. For more information, see:
http://msdn.microsoft.com/en-us/library/ms144259(v=sql.100).aspx
Setup.exe /q /ACTION=Install /FEATURES= Full-Text /INSTANCENAME=MSSQLSERVER /SQLSVCACCOUNT="<DomainName\UserName>" /SQLSVCPASSWORD="<StrongPassword>" /SQLSYSADMINACCOUNTS
As other post, it will not cause interruption, and you require a reboot after installing Full-Text feature.
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Upgrade fails: "SQL Server 2008 R2 Feature Upgrade"
Shouldn't I be able to upgrade to 2008 R2?
Current version:
Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64) Mar 29 2009 10:11:52 Copyright (c) 1988-2008 Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7600: )I've the same problem as described above.
My Version is: 10.0.2531.0 SP1
Standard Edition (64-bit), on Windows Server 2003
Additionally, I have SQL Server 2005 Developer installed on the same machine.
I choosed SQL Server 2008 to upgrade to R2.
In the log I found:
2010-10-01 17:54:31 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' looking for previous version upgrade data for feature package 'sql_as_Cpu64'.
2010-10-01 17:54:31 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' feature package 'sql_as_Cpu64' found no upgrade features.
2010-10-01 17:54:31 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' looking for previous version upgrade data for feature package 'sql_engine_core_inst_Cpu64'.
2010-10-01 17:54:31 Slp: -- SkuUpgradeRule : Found feature package 'sql_engine_core_inst_ctp6_Cpu64' with SkuValue=STANDARD ProductVersion=10.0.1600.22
2010-10-01 17:54:31 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' found sourceVersion 10.0 and edition STANDARD for feature package 'sql_engine_core_inst_Cpu64'.
2010-10-01 17:54:31 Slp: -- SkuPublicConfigObject : ValidateSkuMatrix checking sku matrix for sourceVersion=10.0 sourceEdition=STANDARD sourceArchitecture=X64 targetEdition=STANDARD targetArchitecture=X64
2010-10-01 17:54:31 Slp: -- SkuPublicConfigObject : ValidateSkuMatrix source and target architecture match.
2010-10-01 17:54:31 Slp: -- SkuPublicConfigObject : ValidateSkuMatrix found match in sku matrix.
2010-10-01 17:54:31 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' feature package 'sql_engine_core_inst_Cpu64' permits upgrade.
2010-10-01 17:54:31 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' looking for previous version upgrade data for feature package 'sql_is_Cpu64'.
2010-10-01 17:54:31 Slp: -- SkuUpgradeRule : Found feature package 'IS2005_Cpu64' with SkuValue=DEVELOPER ProductVersion=9.3.4035.00
2010-10-01 17:54:31 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' found sourceVersion 9.0 and edition DEVELOPER for feature package 'sql_is_Cpu64'.
2010-10-01 17:54:31 Slp: -- SkuPublicConfigObject : ValidateSkuMatrix checking sku matrix for sourceVersion=9.0 sourceEdition=DEVELOPER sourceArchitecture=X64 targetEdition=STANDARD targetArchitecture=X64
2010-10-01 17:54:31 Slp: -- SkuPublicConfigObject : ValidateSkuMatrix source and target architecture match.
2010-10-01 17:54:31 Slp: -- SkuPublicConfigObject : ValidateSkuMatrix did not find a match in sku matrix .
2010-10-01 17:54:31 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' feature package 'sql_is_Cpu64' is blocking upgrade.
2010-10-01 17:54:31 Slp: -- SkuUpgradeRule : Rule 'FeatureUpgradeMatrixCheck' detection result: IsValidFeatureUpgrade=False
2010-10-01 17:54:31 Slp: Evaluating rule : FeatureUpgradeMatrixCheck
2010-10-01 17:54:31 Slp: Rule running on machine: <skipped>
2010-10-01 17:54:31 Slp: Rule evaluation done : Failed
2010-10-01 17:54:31 Slp: Rule evaluation message: The specified edition upgrade is not supported. For information about supported upgrade paths, see the SQL Server 2008 R2 version and edition upgrade matrix in Books Online.
Thanks,
Patrik -
Is SQL Server 2008 Express suitable?
Hi friends,
Is the Microsoft SQL Server 2008 Express version suitable and compatible with SAP Business One 8.81 or future versions?
Thank you in advance.
Best Regards,
Kanu PathakHi,
Yes it is compatible but the performance may vary because Express edition has the lowest performance.
Please refer to the link for the compare of SQL server editions [http://www.microsoft.com/sqlserver/en/us/product-info/compare.aspx|http://www.microsoft.com/sqlserver/en/us/product-info/compare.aspx]
If you have annual maintenance package the SQL Server standard edition is free, this is the most common use
edition.
Thanks.
Clint -
How to delete the Folder from sql server 2008
Hi all,
I was trying to delete the folder from sql server 2008 with the below script
DECLARE @path VARCHAR(256) -- path for backup files
DECLARE @cmd VARCHAR(8000)
DECLARE @folderName VARCHAR(256) -- filename for backup
SET @folderName = + (CONVERT(varchar(10), GETDATE()-7, 112)) -- 7 days back date folder name
SET @path = 'I:\Backup_Test\' + @folderName -- Folder path
SET @cmd = 'del ' + @path -- Delete
EXEC master..xp_cmdshell @cmd
--Print @cmd
This is not working it was asking the Confirmation (I:\Backup_Test\20100629\*, Are you sure (Y/N)? ) what will i do to the delete the folder.
Thanks,
Prasad R.I would notice you that T-SQL does not play well to do things like that. Do not you want using .net language to delete folders?
Old method is
declare @HR int, @CFOLDER varchar(255),@FSO int
set @CFOLDER='D:\folder\'
EXEC @HR = sp_OACreate 'Scripting.FileSystemObject', @FSO OUT
EXEC @HR = sp_OAMethod @FSO, null, 'DeleteFolder', @CFOLDER
Now regarding to your second question please examine xp_fileexist system stored procedure
CREATE FUNCTION dbo.fn_file_exists(@filename VARCHAR(300))
RETURNS INT
AS
BEGIN
DECLARE @file_exists AS INT
EXEC master..xp_fileexist @filename, @file_exists OUTPUT
RETURN @file_exists
END
GO
-- test
SELECT dbo.fn_file_exists('c:\a.txt')
Best Regards, Uri Dimant SQL Server MVP http://dimantdatabasesolutions.blogspot.com/ http://sqlblog.com/blogs/uri_dimant/ -
Why i can not use dbco to connect sql server 2008?
Dear Experts,
i use this mehtod to link sql server 2005 :MSSQL_SERVER=tcp:mysqlserver IP MSSQL_DBNAME=SubConPayment,
it is ok,when i use this method to link sql server 2008 with dbco,it is not ok,can you tell me why i can not link to sql server2008 in sap with dbco?
looking forward to your reply.
Best regards,
MerryHi Merry,
Seems that you have to add the "provider" attribute to the connectionstring. Please have a look at the following link: [http://www.connectionstrings.com/sql-server-2008#p2]
Regards,
Ozcan. -
Error installing sql server 2008 management studio express
Hello,
I need to install sql server 2008 management studio express on a sql server 2k8 R2 instance.
First of all, I've downloaded this one from this link: http://www.microsoft.com/en-us/download/details.aspx?id=7593 (for 32 bits).
Once I've the downloaded file I run this file and choose the first option (New sql server stand-alone...) in the installation part. Finally, in the installation type I choose the option 'Add features to an existing instance of SQL Server 2008' with the instance
selected. I push Next and then I get the following error: 'The instance ID is required but it is missing'.
Can anybody help me?
Thanks a lot.
Regards.Hello,
What’s the edition of the SQL Server 2008 R2? If you had installed SQL Server 2008 R2 Developer edition, you should install “SQL Server 2008 Express with Tools” edition or “SQL Server 2008 Express with Advanced Services” edition.
Please refer to the following article for more information:
http://www.benlittler.com/2009/06/how-to-install-sql-management-studio-express-2008/
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support
Maybe you are looking for
-
I'm starting a new thread on this question in the hope that someone new will notice it. I've started using a larger hard drive for my TM backups. I want to be able to use the previous drive for other things BUT I also want to keep the oldest TM backu
-
HTTPS with Client Authentication in SOAP sender Adapter
Hi All, In SOAP Sender communication channel. When I generate WSDL with HTTP Security Level = HTTP: it works when third party tries to send data to XIwebservice. But when I tried with HTTPS with Client Authentication option its giving error Info
-
I created an application in VB.NET 2010 that launches a report in CR2010. In VS2010 when launching the report displays fine but on the distribution server (Windows 2008 R2, Web Edition 64-bit with IIS 7), the report is displayed with a blank page. I
-
Droid razr question mark in battery
This morning i dropped my phone on accident and when i picked it up it was turning off. I turned it back on and it had a red question mark in the battery slot. It said it was 100% and was on for about 2 1/2 hours. In that time i googled on what to do
-
I have a question on label security.(i am new in Oracle security area) The 9i Label Security is built on VPD(virtual private database). Does this means you have to set up VPD before you use the Label Security? I am trying to run the Label Security de