Renaming the Physical Filename for Datafiles in SQL Server 2008
Can anyone tell me how to change the physical filename of the datafiles? There doesn't seem to be any documentation on this, yet its quite easy to change the logical filename.
There are several ways to make this change, however to rename the physical database files at operating system level you will have to take the database offline
1. Use SSMS to take the database Offline (right-click on Database, select Tasks, Take Offline), change the name of the files at the OS level and then Bring it Online.
2. You could Detach the database, rename the files and then Attach the database pointing to the renamed files to do so.
3. You could Backup the database and then restore, changing the file location during the restore process.
4. using T SQL
ALTER DATABASE databaseName SET OFFLINE
GO
ALTER DATABASE databaseNAme MODIFY FILE (NAME =db, FILENAME = 'C:\Program
Files\Microsoft SQL Server\MSSQL.2\MSSQL\Data\db.mdf')
GO
--if changing log file name
ALTER DATABASE databaseNAme MODIFY FILE (NAME = db_log, FILENAME =
'C:\Program Files\Microsoft SQL Server\MSSQL.2\MSSQL\Data\db.ldf')
GO
ALTER DATABASE databaseName SET ONLINE
GO
for more info http://technet.microsoft.com/en-us/library/ms174269.aspx
Similar Messages
-
I have enabled both the traces 1204 and 1222 in sql server 2008 but not able to capture deadlocks
In Application error:
2014-09-06 12:04:10,140 ERROR [org.apache.catalina.core.ContainerBase] Servlet.service() for servlet DoMethod threw exception
javax.servlet.ServletException: java.lang.Exception: [ErrorCode] 0010 [ServerError] [DM_SESSION_E_DEADLOCK]error: "Operation failed due to DBMS Deadlock error."
And
I have enabled both the traces 1204 and 1222 in sql server 2008 but still I am not getting any deadlock in sql server logs.
ThanksThanks Shanky may be u believe or not but right now I am in a migration of 4 lakh documents in documentum on Production site.
and the process from documentum is halting due to this error but I am not able to get any deadlock in the sql server while the deadlock error is coming in documentum:
[ Date ] 2014-09-06 17:54:48,192 [ Priority ] INFO [ Text 3 ] [STDOUT] 17:54:48,192 ERROR [http-0.0.0.0-9080-3] com.bureauveritas.documentum.commons.method.SystemSessionMethod - ERROR 100: problem occured when connecting repository! DfServiceException::
THREAD: http-0.0.0.0-9080-3; MSG: [DM_SESSION_E_DEADLOCK]error: "Operation failed due to DBMS Deadlock error."; ERRORCODE: 100; NEXT: null at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.checkForDeadlock(NetwiseDocbaseRpcClient.java:276)
at com.documentum.fc.client.impl.connection.docbase.netwise.NetwiseDocbaseRpcClient.applyForObject(NetwiseDocbaseRpcClient.java:647) at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection$8.evaluate(DocbaseConnection.java:1292) at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.evaluateRpc(DocbaseConnection.java:1055)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.applyForObject(DocbaseConnection.java:1284) at com.documentum.fc.client.impl.docbase.DocbaseApi.authenticateUser(DocbaseApi.java:1701) at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.authenticate(DocbaseConnection.java:418)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.open(DocbaseConnection.java:128) at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.<init>(DocbaseConnection.java:97) at com.documentum.fc.client.impl.connection.docbase.DocbaseConnection.<init>(DocbaseConnection.java:60)
at com.documentum.fc.client.impl.connection.docbase.DocbaseConnectionFactory.newDocbaseConnection(DocbaseConnectionFactory.java:26) at com.documentum.fc.client.impl.connection.docbase.DocbaseConnectionManager.getDocbaseConnection(DocbaseConnectionManager.java:83)
at com.documentum.fc.client.impl.session.SessionFactory.newSession(SessionFactory.java:29) at com.documentum.fc.client.impl.session.PrincipalAwareSessionFactory.newSession(PrincipalAwareSessionFactory.java:35) at com.documentum.fc.client.impl.session.PooledSessionFactory.newSession(PooledSessionFactory.java:47)
at com.documentum.fc.client.impl.session.SessionManager.getSessionFromFactory(SessionManager.java:111) at com.documentum.fc.client.impl.session.SessionManager.newSession(SessionManager.java:64) at com.documentum.fc.client.impl.session.SessionManager.getSession(SessionManager.java:168)
at com.bureauveritas.documentum.commons.method.SystemSessionMethod.execute(Unknown Source) at com.documentum.mthdservlet.DfMethodRunner.runIt(Unknown Source) at com.documentum.mthdservlet.AMethodRunner.runAndReturnStatus(Unknown Source) at com.documentum.mthdservlet.DoMethod.invokeMethod(Unknown
Source) at com.documentum.mthdservlet.DoMethod.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182) at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104) at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) (Log Path:SID CER > vmsfrndc01docpp > JMS_Log > server ,Host: vmsfrndc01docpp ,Apps: [SID CER, SID IVS])</init></init>
Thanks -
Hi,
I am looking for inputs in tuning stored procedure using sql server 2008. l am new to performance tuning in sql,plsql and oracle. currently facing issue in stored procedure - need to increase the performance by code optmization/filtering the records using where clause in larger table., the requirement is Stored procedure generate Audit Report which is accessed by approx. 10 Admin Users typically 2-3 times a day by each Admin users.
It has got CTE ( common table expression ) which is referred 2 time within SP. This CTE is very big and fetches records from several tables without where clause. This causes several records to be fetched from DB and then needed processing. This stored procedure is running in pre prod server which has 6gb of memory and built on virtual server and the same proc ran good in prod server which has 64gb of ram with physical server (40sec). and the execution time in pre prod is 1min 9seconds which needs to be reduced upto 10secs or so will be the solution. and also the exec time differs from time to time. sometimes it is 50sec and sometimes 1min 9seconds..
Pl provide what is the best option/practise to use where clause to filter the records and tool to be used to tune the procedure like execution plan, sql profiler?? I am using toad for sqlserver 5.7. Here I see execution plan tab available while running the SP. but when i run it throws an error. Pl help and provide inputs.
Thanks,
VijiYou've asked a SQL Server question in an Oracle forum. I'm expecting that this will get locked momentarily when a moderator drops by.
Microsoft has its own forums for SQL Server, you'll have more luck over there. When you do go there, however, you'll almost certainly get more help if you can pare down the problem (or at least better explain what your code is doing). Very few people want to read hundreds of lines of code, guess what's it's supposed to do, guess what is slow, and then guess at how to improve things. Posting query plans, the results of profiling, cutting out any code that is unnecessary to the performance problem, etc. will get you much better answers.
Justin -
Creating the report in BI Publisher with SQL SERVER 2008
Dear Team,
I want to create report on BI Publisher....i am able to create report with the help of oracle database ...but i dont'nt know how to create DATA MODEL in sql server 2008 ...
plz tell me the wright way....
Thanks,
Him..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? -
The unattended installation failed while installing SQL Server 2008 R2 ????
Hi gurus,
I got an error while installing SQL Server 2008 R2 in Windows 2008 R2 standard 64 bit operating system.
LOG file*
Customized installation of SQL Server 2008R2 for SAP *
Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\SqlBrowser_Cpu32_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_common_core_Cpu64_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\SqlWriter_Cpu64_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_tools_Cpu64_1.log
MSI error description:
Configuration status: Passed
Feature: Full-Text Search
Status: Failed: see logs for details
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\SqlBrowser_Cpu32_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_common_core_Cpu64_1.log
MSI error description:
Configuration status: Passed
Feature: Client Tools Connectivity
Status: Failed: see logs for details
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_common_core_Cpu64_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_tools_Cpu64_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\SqlBrowser_Cpu32_1.log
MSI error description:
Configuration status: Passed
Feature: Management Tools - Complete
Status: Failed: see logs for details
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_common_core_Cpu64_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_tools_Cpu64_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\SqlBrowser_Cpu32_1.log
MSI error description:
Configuration status: Passed
Feature: Management Tools - Basic
Status: Failed: see logs for details
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_common_core_Cpu64_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\SqlBrowser_Cpu32_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_tools_Cpu64_1.log
MSI error description:
Configuration status: Passed
Feature: Client Tools SDK
Status: Failed: see logs for details
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_tools_Cpu64_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\SqlBrowser_Cpu32_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_common_core_Cpu64_1.log
MSI error description:
Configuration status: Passed
Feature: Client Tools Backwards Compatibility
Status: Failed: see logs for details
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_common_core_Cpu64_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_tools_Cpu64_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\SqlBrowser_Cpu32_1.log
MSI error description:
Configuration status: Passed
Feature: Business Intelligence Development Studio
Status: Failed: see logs for details
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_common_core_Cpu64_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\SqlBrowser_Cpu32_1.log
MSI error description:
MSI status: Failed: see details below
MSI error code: 0x1639
MSI log file location: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\sql_tools_Cpu64_1.log
MSI error description:
Configuration status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20120116_221104\SystemConfigurationCheck_Report.htm
1/16/2012 10:13:34 PM
Message Box "Installation failed"
The unattended installation failed.
Installation Step: The unattended installation failed.
Return Code: -2068052377
Log File: C:\Windows\SQL4SAP.log
Check the log file above.
See SAP note 1144459 for known issues.
Result: vbOK
Registry settings (2/2):
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\{3d06c673-5e8a-41c0-b47f-3c3ca0a22e67}
WRITE(REG_DWORD): 4
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\{2b9034f3-b661-4d36-a5ef-60ab5a711ace}
WRITE(REG_DWORD): 4
1/16/2012 10:37:32 PM
Quit script with return code 1
Please help me out with this issue.
REGARDS,
RajHello Raj,
MS SQL DB installation specific steps for SAP system is clearly documented in SAP Installation guide. Please download from SMP, read it carefully and install as mentioned in the guide.
Hope it helps.
Thanks,
Siva Kumar -
Set SPN for a local SQL Server 2008 R2 Express database used for local "Offline Mode" application
Hi - I have tried searching the web for tips on this situation. Basically, I am trying to recreate a previous employee's client Image. This image is used for one of our companies client application that features and "Offline Mode" where it connects
(Using Kerberos) to the local DB instead of the central DB server.
The custom image connects without issue. I cannot seem to recreate his configuration. I am sure of these things:
- Both images are using the same SQL Server 2008 R2 Express version.
- Both images have the same user accounts setup.
- Both images have "Remote Connections" setup with TCP/IP enabled in the Configuration Manager.
- Both images are joined to the same Domain server currently.
- Both images has the SQLServer service set to use "NETWORK SERVICE" account.
This is the error message I get when SQL starts up for the non-working image:
The SQL Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b, state: 3. Failure to register an SPN may
cause integrated authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.
Thank you for any assistance given.Hi Gribbled,
Could you please change the SQL Server Service to run under 'LocalSystem' account and restart SQL Server? Then check if the error still occurs. When the SQL Server service account is configured to use the LocalSystem account, the server will automatically
publish the SPN.
Alternatively, to work around this issue, you can manually create the SPN for the SQL Server Service account using the SETSPN tool. For more details, please review this
blog.
Thanks,
Lydia Zhang -
One of the Column returned as NULL from SQL Server 2008
Hi,
I have written a stored procedure in SQL server 2008. The procedure reads data into a temporary table @MeterWiseConsumptionBetwDates as shown
SELECT @sqlstatement = 'SELECT '''@MeterName''', CAST ( MAX('@Meterfield') AS FLOAT )-CAST ( MIN('@Meterfield') AS FLOAT )
FROM KWH
WHERE KWH.timestamp BETWEEN @StDate AND @EndDate'
INSERT INTO @MeterWiseConsumptionBetwDates(MeterName,Consumption)
EXEC sp_executesql @sqlstatement, N'@StDate datetime, @EndDate datetime', @StDate, @EndDate
Now when I execute the stored procedure in SQL Server Management Studio it returns all the columns from the table @MeterWiseConsumptionBetwDates, but when I execute the procedure in MII it returns the values in the Consumption column as null. The MeterName column is returned correctly in both the cases.
Please help.
ThanksGlad to hear that it is working. You should be able to use
execute <proc name> '[SD]'
[SD] and [ED]
are the query date tokens, so whatever you have assigned on the Date Range tab will be passed to the query.
Jamie
Edited by: Jamie Cawley on May 9, 2011 9:40 AM -
Urgent : Domain creating for BPM in sql server 2008
Hi,
I have created the repository for SOA & BPM and installed the soa 11.1.1.7 in windows 64 bit.
while am creating the domain for soa in weblogic server 10.3.6. Am getting error like
[FMWGEN][SQLServer JDBC Driver][SQLServer]Could not find stored procedure 'master..xp_jdbc_open2'.
CFGFWK-60850: Test Failed!
For this issue i have found the solution from MOS
SOA 11g: Data Source Error Using SQL Server in Domain Configuration Wizard, 'CFGFWK-60850' [ID 1483823.1]
we have tried above solution but still we are facing the same issue.
please suggest me to solve this issue.
Regards
Kumar VHi,
Now the issue has been fixed.
we have followed the below mentioned document. it gives solution for this issue.
SOA 11g: Data Source Error Using SQL Server in Domain Configuration Wizard, 'CFGFWK-60850' [ID 1483823.1]
Thanks
Kumar V -
Test Connection failed in Crystal Reports for Eclipse using SQL Server 2008
I installed an SQL Server Express 2008 on my local PC (Window XP SP3). I downloaded sqljdbc4.jar to Crystal Reports for Eclipse
IDE library path and tried to Test Connection, but got the Ping failed message : The TCP/IP connection to the host localhost, port 1433 has failed. It said that check that an instance of SQL Server is running on the host (I saw SQL Server SQLEXPRESS is Running on my PC) and accepting TCP/IP connection at the port (I enabled TCP/IPin my PC's SQL Server Network Configuration),
and that no firewall is blocking TCP connection to the port(I turned OFF Window Firewall on my OC). Can anyone tell me how can I fix this problem ?Hi,
Check the below thread also:
http://scn.sap.com/thread/1634856
Thanks,
DJ -
Permission denied when creating database in Sql Server 2008 for SQLExpress
I'm getting an permission error while restoring the database. I'm using SQL Server 2008 SQLEXPRESS
I'm able to create the user using this script " CREATE LOGIN [darth\vader] FROM WINDOWS;
GO;"
But when I try to give role to the user it's still give me permission error.. SP_ADDSRVROLEMEMBER ‘darth\vader’, ‘sysadmin’
Can someone guide me how to resolve this issue?http://msdn.microsoft.com/en-us/library/ms186858.aspx
Permissions
If the database being restored does not exist, the user must have CREATE DATABASE permissions to be able to execute RESTORE. If the database exists, RESTORE permissions default to members of the sysadmin and dbcreator fixed
server roles and the owner (dbo) of the database (for the FROM DATABASE_SNAPSHOT option, the database always exists).
RESTORE permissions are given to roles in which membership information is always readily available to the server. Because fixed database role membership can be checked only when the database is accessible and undamaged, which is not always the case when RESTORE
is executed, members of the db_ownerfixed database role do not have RESTORE permissions.
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Has mssql2008r2 got "Cumulative Update Package 6 for SQL Server 2008 Service Pack 1"
hi,
I have
Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (Intel X86) Apr 2 2010 15:53:02 Copyright (c) Microsoft Corporation Express Edition with Advanced Services on Windows NT 5.1 <X86> (Build 2600: Service Pack 3)
, i wanted to know has it got
"Cumulative Update Package 6 for SQL Server 2008 Service Pack 1"
so that i do not have to install or i have to install
yours sincerleyThank u, please tel me can i instal sp3.
I have noticed the link of sp2 (http://www.microsoft.com/en-in/download/details.aspx?id=30437)
has listed
(SQL Server 2008 R2 Express Edition)
SQL Server 2008 R2 Service Pack 2 (SP2) is now available for download. SQL Server 2008 R2 service packs are cumulative and can be used to upgrade all releases of SQL Server 2008 R2 to Service Pack 2. SQL Server 2008 R2 Service Pack 2 contains Cumulative Update
1 to 5 from SQL Server 2008 R2 SP1. The package can be used to upgrade the following SQL Server 2008 R2 editions:
SQL Server 2008 R2 Parallel Computing Edition
SQL Server 2008 R2 Datacenter Edition
SQL Server 2008 R2 Enterprise Edition and Developer Edition
SQL Server 2008 R2 Standard Edition
SQL Server 2008 R2 Web Edition
SQL Server 2008 R2 Workgroup Edition
SQL Server 2008 R2 Express Edition
where as link of sp3(http://www.microsoft.com/en-us/download/details.aspx?id=44271)
has not listed express edition but written in general.
SQL Server 2008 R2 Service Pack 3 (SP3) is now available for download. SQL Server 2008 R2 service packs are cumulative and can be used to upgrade all releases of SQL Server 2008 R2 to Service Pack 3. SQL Server 2008 R2 Service Pack 3 contains
Cumulative Update 1 to 13 from SQL Server 2008 R2 SP2. The package can be used to upgrade the following SQL Server 2008 R2 editions:
SQL Server 2008 R2 Parallel Computing Edition
SQL Server 2008 R2 Datacenter Edition
SQL Server 2008 R2 Enterprise Edition and Developer Edition
SQL Server 2008 R2 Standard Edition
SQL Server 2008 R2 Web Edition
SQL Server 2008 R2 Workgroup Edition
yours sincerley -
Upgrade SQL From the SQL Server 2000 to SQL Server 2008
hello:
I am running the following query. This query is based on SQL server 2008. POIShare is a view which is created by the table.
"select PoiShare.AddressCode,REPLACE(PoiShare.NameSpell,' ','') as NameSpell,PoiShareOffset.Offset from PoiShare, PoiShareOffset where POIShare.AddressCode & 0xFF000000 = %COUNTRY_ADCODE% and PoiShare.POIID = PoiShareOffset.POIID order by PoiShare.AddressCode,PoiShare.NameSpell"
I'm getting the following result.
3188785409 "папа,мама,я"
791241
3188785409 01кафе
0
3188785409 007
5767272
3188785409 03
4790808
3188785409 02lounge
19
3188785409 03аптека
4791813
3188785409 03аптека
4791805
3188785409 01сервис
1246782
"PoiShare.NameSpell" is not sorted. I try to solve this problem.but It doesn't work.
I tried some ways.
1.Sort all of the field
2.Using "COLLATE Cyrillic_General_CI_AI_KS_WS" to "NameSpell"
3.Create index for "NameSpell"
4.Using "cast(replace(PoiShare.NameSpell,',','') as bigint)",But SQL returned an error
5.Install SQL SP1
any help is greatly appreciated.SELECT * FROM <<VIEW>>
ORDER BY <<COLUMN>>
The query above work fine in SQL Server 2008. NameSpell has already been sorted, thank you. -
I would like to add a new Firewall 'Inbound Rule' to allow remote access by
SQL Server 2008.
SQL Server Management Studio shows two TCP/IP instances, both of which are Enabled.
One uses port 1433 and the other uses ‘TCP Dynamic Ports’.
In SQL Server, the server has ‘Allow remote connections to this server’ checked.
My Firewall allows port 1433 for the one TCP/IP instance.
Since the other instance is dynamic, I would like to add a new
Firewall 'Inbound Rule' to allow the SQL Server executable to run.
I’ve read that the SQL Server executable is commonly named SQLSERVR.EXE, but there is no such file on my laptop.
I’m assuming the executable that needs to be added to the Firewall 'Inbound Rule'
is SQLCMD.EXE (in the path C:\Program Files\Microsoft SQL Server\100\Tools\Binn).
Can anyone please confirm this? (I'm running Windows 7). Thanks.Hi Bontrager,
Firstly, please run
Discovery Report to the detect the existing SQL Server 2008 instance. If SQL Server 2008 is installed properly on your machine, the sqlservr.exe should exists in C:\Program Files\Microsoft SQL Server\MSSQL10.<instance_name>\MSSQL\Binn.
Secondly, if SQL Server 2008 is configured to use dynamic port, it is difficult to configure the firewall to enable access to the correct port number because the port selected might change every time that the Database Engine is started.
Therefore, if a firewall is used, please reconfigure the SQL Server 2008 to use the static TCP port by using SQL Server 2008 Configuration Manager.
For more information, please review this
article. After that, you can add the port number in firewall inbound rule.
Thirdly, if you want to connect to SQL Server 2008 from outside the firewall by instance name, SQL Server Browser should be turned on and you'll have to allow the SQL Server Browser through the firewall, which is UDP port 1434.
Reference:
https://msdn.microsoft.com/en-us/library/cc646023.aspx
http://stackoverflow.com/questions/10539900/opening-ports-sql-server-instances
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support -
Sa's password in SQL Server 2008 R2 Express
Hi,
In the SQL Server 2005 Express I can chose the expert mode during the installation. This enables me to set the password of the user “sa”.
Now I tried to install SQL Server 2008 R2 Express but I had no possibility to change / set the password of the user “sa”.
I read in the internet that the default-password of the user “sa” should be a blank password. Since in SQL Server 2008 R2 Express there was no way to set / change “sa”’s password I tried to login with a blank password. But this
also didn’t worked.
So my questions are:
1. Where during the SQL Server 2008 R2 Express setup can I set / change the “sa”’s password.
2. Where in the SQL Server 2008 R2 Express can I set / change the “sa”’s password after the installation.
3. What’s the default password of “sa” in SQL Server 2008 R2 Express?
4. Why a blank password for the unmodified “sa” account didn’t worked?
Thank in advance for all your helpful answers.I am not sure whether you found a solution for sa password reset in 2k8 express. May be useful to others.
Steps to reset the password:
1. Go to SQL Server Properties/Security tab and change the mode to SQL Server authentication mode
2. Go to security/logins, open SA login properties
a. Uncheck "Enforce password policy" and "Enforce password expiration" check box there if you decide
to use weak password
b. Assign password to SA user
3. In SQL 2k8, we may get the following error when we reset the password,
"Cannot set a credential for principal 'sa' . (Microsoft SQL Server, Error: 15535)"
Resolution:
but this can be fixed by selecting the "Map To Credential" check box on the General tab of the Login
Properties - sa dialog box.
4. You may get the following error after above step,
“User is not associated with a trusted sql server connection"
Resolution:
In SQL Server Management Studio, Right-click the Server name, select Properties > Security
Under Server Authentication, select SQL Server and Windows Authentication Mode
The server must be stopped and re-started before this will take effect.
5. Make sure the sa (at status tab of sa properties) is enabled after restart the server.
It works =)!!!!!!!!! Thanks man =) -
Windows 8 and IE 10 crashed after printing from Report Manager SQL server 2008 / 2008 R2
We have a problem with Windows 8 in combination with IE 10 and printing reports.
When we print a report from the Report Manager 'http://<servername>/reports' the browser crashed after a print.
Sometimes before printing and somthimes after printing or when you close the browser.
Al other operating systems like XP, Vista, Windows 7 with different IE versions have no problem.
I tried the report manager from SQL Server 2008 and SQL Server 2008 R2.
The same error occured when printing from our Internet application and the reportviewer.
(ASP application written in Visual Studio 2010 and reportviewer version 10.)
The event log shows two different messages.
Faulting application name: IEXPLORE.EXE, version: 10.0.9200.16453, time stamp: 0x509b0dfb
Faulting module name: ntdll.dll, version: 6.2.9200.16420, time stamp: 0x505aaa82
Exception code: 0xc0000005
Fault offset: 0x00061252
Faulting process id: 0x780
Faulting application start time: 0x01ce03a294f7d1d5
Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
Faulting module path: C:\Windows\SYSTEM32\ntdll.dll
Report Id: d4a72486-6f96-11e2-be6e-10604b6a74ed
Faulting package full name:
Faulting package-relative application ID:
Faulting application name: IEXPLORE.EXE, version: 10.0.9200.16384, time stamp: 0x50107ee0
Faulting module name: rsclientprint.dll, version: 2009.100.1600.1, time stamp: 0x4bb67a74
Exception code: 0xc0000005
Fault offset: 0x00017e7a
Faulting process id: 0x9c8
Faulting application start time: 0x01ce02f35c70ab85
Faulting application path: C:\Program Files (x86)\Internet Explorer\IEXPLORE.EXE
Faulting module path: C:\Windows\Downloaded Program Files\rsclientprint.dll
Report Id: a13fccc6-6ee6-11e2-be67-10604b6a74ed
Faulting package full name:
Faulting package-relative application ID:
Is there a fix for this problem?Dear Mike Yin,
Thank you for your response. Your answer was the
reason for finding the real problem.
In december 2010 a SQL Server 2008 fix was the cause. I don't remember exactly the problem, but we changed the RSCLIENTPrint-x86.cab file. But instead to use the version of SQL Server 2008 we used the version of SQL Server 2008
R2 (10.50.1600.1). This worked until
Windows 8 (Internet Explorer crashed when printing).
We fixed this problem by using the RSClientPrint-x86.cab file from SQL server 2008 (10.0.5500.0).
But we now get the known problem that the
activeX always must be installed again.
The reason for this is that the version of
the SQL Server (10.0.5512.0)
and the rsclientprint.dll (10.0.5500.0) is different. SQL Server is newer (caused
by a security patch (KB2716436)).
Do you know when this problem will be resolved
by Microsoft?
Work arrounds
I've also tried to install the RSClientprint.dll
every time automatically (without user interaction).
But this will be delayed the printing for more
than 4 seconds. This
is very annoying.
Another workaround is to generate a PDF and print the PDF. But this is also
a lot slower.
Uninstall the security patch. but I don't know the security risk.
Maybe you are looking for
-
How to add a link on an imported swf movie?
I convert into a button and put this code btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage); function fl_ClickToGoToWebPage(event:MouseEvent):void navigateToURL(new URLRequest("http://www.google.com"), "_blank"); and there is a link but o
-
Can i make my ipod play songs in a particular order? If so, how?
I want to create a playlist that plays song in a specific order, but iTunes seems to only sort the songs by the headings in the playlist, artist, title, song, etc. Can I make it play the songs in the order i want to hear them? Dell Inspiron Windows
-
How to find the group name for a section programatically?
I have these display formulas that are being repeated in each group footer. The only thing that changes are the group names. How can I find the group name for the current section? The bolded(or starred) items are what I'm trying to create a generic
-
Living near the ocean apparently breaks your iPhone every 6 weeks...
12 weeks ago I moved into a (very poorly ventilated and very humid) house across the street from the beach. 6 weeks after living here, my iPhone 4S gradually began to stop charging correctly. Once the 6 week mark hit, it just stopped charging complet
-
I have been having an issue with communications between ImageReady CS and Dreamweaver MX 2004. My rollover images go wacky. They preview fine from ImageReady but when I update my site in Dreamweaver, the rollovers will show the up state. The other tw