Today I want to use Ruby on Rails to do a small project, need to use the MySQL database, the project's data has been, but is stored in SQL Server, with rails can operate SQL Server, but the total feeling does not match, want to convert to use, the internet turned down, There
The difference between coercion cast and convert in SQL Server
In SQL Server, both the cast and CONVERT functions are available for type conversions, and their functions are the same.
Just different grammar.
Cast is generally e
In SQL Server, both the cast and CONVERT functions are available for type conversions, and their functions are the same.It's just a different syntax.Cast is generally easier to use, and the advantage of convert is that dates and values can be formatted.CodeSelect CAST('123' as int)--123Select
At the beginning of the year has been doing a Web site MSSQL2000-> MySQL5 Migration work because of the use of different program systems, so the main problem in data migration. Because of the 2 system database structure is very large, not convenient to take the SQL Server to import MySQL ODBC data source features (also not recommended, field types, such as different points will kill the ~), so in Windows to
server| Access | server
Configure the SQL Server Analysis server to be accessed via HTTP
Its HTTP access mechanism is the same as SQL2000 analysis, which enables
window of access and click the "Design" button.
Click the SQL button on the View menu.
Paste the entire query into SQL Server Query Analyzer.
Test the syntax, save the transaction processing SQL statements for later use, or execute the statements in the database. You can ch
Use SQL Server to connect to the Server to access DB2 Server and sqldb2
First, install Microsoft ole db Provider for DB2
: Http://download.microsoft.com/download/ B/B /2/BB22098A-C071-415F-9269-2EB26CEFB562/DB2OLEDB_CN.exe
After installation, one more menu item is displayed:
= 1Database Grooming order = IDENTITYAlternate collating order (alt_collate) =Digital compatibility = OFF PC code page, can be learned by the following actions.:The 12th step of the string is needed.Provider=db2oledb; User id=db2admin; Password=db2admin;initial Catalog=bpmdb; Network Transport library=tcp; Host ccsid=1208; PC Code page=936; Network address=10.18.50.149; Network port=50000; Package Collection=bpmdb; Process Binary as Character=false; Units of Work=ruw;dbms Platform=db2/mvs;defer
as the user's demand for enterprise-class high-performance databases grows, users often convert to a client-server environment in Microsoft SQL Server from the file-server environment of the Microsoft Access jet engine.
)
120 or 20
Yyyy-mm-dd Hh:mi:ss (24h)
121 or 21
Yyyy-mm-dd hh:mi:ss.mmm (24h)
126
Yyyy-mm-ddthh:mm:ss.mmm (no spaces)
130
DD Mon yyyy hh:mi:ss:mmmAM
131
Dd/mm/yy Hh:mi:ss:mmmAM
InstanceThe following script uses the CONVERT () function to display different formats. We will use the GETDATE () function to get the current date/time:
method for XML andDISTINCTget the string that has been weighed and then assign a variableFor XML requires SQL Server 2005+ version support--new SQL method to de-redo with for XML path and distinctDECLARE @SNvarchar( -)--The result cannot be assigned to a variable in a query that contains the DISTINCT keyword, and the following
export data. In fact, we can also use Transact-SQL statements to import and export data. In a Transact-SQL statement, we mainly use the OpenDataSource function and OpenRowset function. For more information about functions, see SQL online help. You can easily convert SQL
SQL Server Date functionDefinition and usageThe CONVERT () function is a general function that converts a date to a new data type.The CONVERT () function can display date/time data in different formats.GrammarCONVERT (data_type (length),data_to_be_converted,style)data_type (length) Specifies the target data type (with
then we can break down each point of the key.Partitioning is to split a table data into sub-collections, that is, to split a data file into multiple data files, but the storage of these files can rely on a filegroup or multiple filegroups, because more than one filegroup can increase the database access concurrency, but also can be different partitions configured to different disks to improve efficiency , the recommended partition is created with the
This article from: http://www.cnblogs.com/xh831213/category/47654.htmlExplicitly converts an expression of a data type to another data type. CAST and CONVERT provide similar functionality.GrammarUsing CAST:CAST (expression as data_type)Using CONVERT:CONVERT (data_type[(length)], expression [, style])ParametersExpressionIs any valid microsoft®sql Server™ expressio
when I started the win7 firewall during the test, just close it)
Summary:
Notes for IIS:
1. register the. Ent framework
2. register the WCF Ria service (or set the copy local attribute of the relevant DLL to true)
3. Pay attention to the authentication method of applications. Generally, Forms authentication and anonymous authentication are enabled.
4. Pay attention to the application pool settings
5. SQL Server
Introduction: SQL Server and Microsoft Access are both Microsoft products. The former is used for medium-sized enterprise applications, and the latter is representative of small databases, which is easy for beginners to master. When developing general information systems, especially the standalone version, most of them use ac
. This server is an ole db data source. Openquery can be referenced in the from clause of the query, as if it is a table name. Openquery can also be referenced as the target table of the insert, update, or delete statement. However, this depends on the functions of the ole db access interface. Although a query may return multiple result sets, openquery returns only the first result set.
Syntax
Openquery
Because the project needs to need so in the Web site, and now summed up a bit, I hope to help you, use the software has mss2sql, before using the software, please install SQLService and MySQL in the local first.Mss2sql:http://files.cnblogs.com/andrew-blog/mss2sql.rarReference: http://www.cnblogs.com/andrew-blog/archive/2011/12/03/SQL_mss2sql.htmlTo open a compressed package after downloadRun Mss2sqlThe default is move to MysQL server directly, select
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.