Categories


Tags


access升迁sqlserver(代理平台数据库转换)

注意:请使用office的microsoft access进行转换,推荐office 2007以上版本 。其他第三方office工具可能无法操作。

1.双击global.mdb打开access数据库-数据库工具-sqlserver

图片1.png

2.使用现有数据库-下一步-dsn名称后

图片2.png

3.选择sqlserver

图片3.png

4.下一步-浏览,设置一个数据源名称,

如test,下一步,完成

图片8.png

下一步,选择使用用户输入登陆id和密码的sqlserver验证,填写数据库帐号密码

图片5.png

下一步,勾选”更改默认的数据库为”,并在下拉框中选择对应数据库

图片7.png

下一步-完成-确定-确定

图片6.png

输入数据库密码,确定

图片8.png

点击双箭头将左侧所有表都添加到右侧,下一步-下一步-下一步-完成

等待所有表都创建到sqlserver服务器的数据库中即可

代理平台升级数据库后

编辑config/const.asp

isdbsql=true  ' 数据库类型

SqlUsername="xiuzhanwang"  ' 登陆帐号

SqlPassword="******"  ' 登陆密码

SqlDatabaseName="xiuzhanwang"  ' 数据库名称

SqlHostIP="sql.xxx.vhostgo.com"  ' 连接地址

然后用sql管理器或者navicat for sqlserver等工具连接sqlserver数据库,执行以下sql语句修改部分字段类型

image.png

alter table countlist alter column c_memo nvarchar(MAX)

alter table productlist alter column p_name nvarchar(MAX)

alter table producttype alter column pt_memo nvarchar(MAX)

alter table protofree alter column freeproid1 nvarchar(MAX)

alter table ActionLog alter column Remark nvarchar(MAX)

alter table ActionLog alter column Remark nvarchar(MAX)

alter table cache_app alter column value nvarchar(MAX)

alter table domaintrans alter column whoisbody nvarchar(MAX)

alter table Free alter column f_content nvarchar(MAX)

alter table HostRental alter column Memo nvarchar(MAX)

alter table HostRental alter column weihulist nvarchar(MAX)

alter table mailsitelist alter column m_agent nvarchar(MAX)

alter table ShopCart alter column addtime datetime

alter table ShopCart  ADD DEFAULT getdate() for addtime

alter table UserDetail ADD DEFAULT getdate() for u_regdate

alter table UserDetail ADD DEFAULT 0 for u_resumesum

alter table UserDetail ADD DEFAULT 0 for u_usemoney

alter table UserDetail ADD DEFAULT 0 for u_Invoice

alter table UserDetail ADD DEFAULT 0 for u_remcount

alter table UserDetail ADD DEFAULT 0 for u_borrormax

alter table countlist ADD DEFAULT 0 for u_in

update UserDetail set u_resumesum=0 where u_resumesum is null

update UserDetail set u_usemoney=0 where u_usemoney is null

update UserDetail set u_Invoice=0 where u_Invoice is null

update userdetail set u_remcount=0 where u_remcount is null

update userdetail set u_borrormax=0 where u_borrormax is null

update countlist set u_in=0 where u_in is null

set identity_insert serverroomlist ON

再取消serverroomlist 表r_id字段的标识

注意:您如果使用数据库自带管理工具,请在选项中取消阻止保存要求重新创建表的更改

image.png

来源:西部数码


Public @ 2020-10-27 15:47:50

[分享]云服务器挂马清理实例

今天,我们将为大家介绍云服务器挂马清理实例,一起来看看吧! 一、准备工作 1、购买云服务器,选择可信任的服务商,以及安全健壮的系统镜像。 2、开启安全日记功能,让系统记录每一个对系统的行为,以便发现系统异常行为。 3、在使用云服务器之前Enable访问安全策略,限制访问IP。 4、安装安全软件,进行持续的病毒扫描,同时更新众多安全补丁。 二、清理被挂马文件 1、如果发现被挂马文件,则Mer

Public @ 2023-02-24 09:48:46

快云VPS/服务器系统开启PING 方法

为了安全系统默认是禁PING,如果需要开启,可参考以下方法。一、以Win2003系统为例:1、系统默认为PING禁。2、开始--设置--控制面板--Windows防火墙--高级--选择本地连接(外网网卡)-设置-选择ICMP--允许传入响应请求--打勾--确定。如下图:3、同理:取消打勾为禁Ping.图片2.png二、以Win2008R2系统为例:1、系统默认为PING禁。2、计算机--右键管理-

Public @ 2015-10-10 16:13:10

SQL Server存储过程编程经验技巧

MS SQL Server目前正日益成为WindowNT操作系统上面最为重要的一种数据库管理系统,随着MS SQL Server2000的推出,微软的这种数据库服务系统真正的实现了在WindowsNT/2000系列操作系统一统天下的局面,在微软的操作系统上面,没有任何一种数据库系统能与之相抗衡,包括数据库领域的领头羊甲骨文公司的看家数据库系统Oracle在内。不可否认,MS SQL Server最

Public @ 2009-05-21 15:47:50

SQL Server 2005数据库修改sa密码的方法

: 1、先登录SQL Server里的数据库服务器,使用Window Authentication登录,以Administrator权限运行SQL Server Management Studio,然后右键点击SQL Server实例,选择属性,这时候会弹出一个对话框,点击安全页,在用户名一栏找到sa用户,点击右侧的password修改栏,然后再新密码一栏输入密码即可。 2、使用SQL脚本修改

Public @ 2023-02-26 12:00:21

更多您感兴趣的搜索

0.617078s