Αποτελέσματα Αναζήτησης
20 Μαΐ 2009 · SQL Server table name can be changed in two ways. Execute the below query, by using the system stored procedure sp_rename. EXEC sp_rename 'dbo.old_table_name','new_table_name'; Open SSMS and expand the database folder. Right-click on a table and click Rename.
29 Ιαν 2020 · if you search for your table name, you can simply replace every occurrence of the old table name with the new table name. You don't have to explicitly save the query. Simply this does the job. DAO is working directly on the SQL string which is actually the query. qry,SQL = replace(qry.SQL, "old table name", "new table name")
19 Σεπ 2014 · You need to use dynamic sql if you want the table name to be variable, otherwise you need to use conditional statements to filter based on table names, which would be ok if there weren't too many table names to work through.
To change the data type of a column in a table, use the following syntax: SQL Server / MS Access: ALTER TABLE table_name. ALTER COLUMN column_name datatype; My SQL / Oracle (prior version 10G): ALTER TABLE table_name. MODIFY COLUMN column_name datatype; Oracle 10G and later: ALTER TABLE table_name.
17 Μαρ 2022 · By using the ALTER TABLE statement, you can alter an existing table in several ways. You can: Use ADD COLUMN to add a new field to the table. You specify the field name, data type, and (for Text and Binary fields) an optional size.
17 Φεβ 2022 · For the most part, changing a table name will automatically change some of the references. But its kind of hit and miss. The Object Dependency tool on the Database tab will show where the table is used in all other objects. Run a Dependency report on tblClasses before making any change.
21 Ιουλ 2018 · IF(EXISTS(SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = @TblName)) BEGIN. DECLARE @SQL NVARCHAR(MAX) = N'. SELECT * FROM ' + @TblName + 'WHERE 1=1'. + CASE WHEN @Condition IS NOT NULL THEN. ' AND ' + @Condition ELSE N'' END. DECLARE @params NVARCHAR(MAX) = N'.